home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-06-08 | 12.9 KB | [ TEXT/CWIE]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
MS-DOS Code Page Info (other/dosCodePage)
ext
Unsupported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Jun 8 13:15:46 1996, modified Sat Jun 8 13:15:46 1996, creator 'CWIE', type ASCII, 12431 bytes "CFonts.cp" , at 0x310f 456 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ CWIE]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 09 43 46 6f 6e 74 73 | 2e 63 70 00 00 00 00 00 |..CFonts|.cp.....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......| |00000050| 00 00 00 00 00 30 8f 00 | 00 01 c8 ad df 65 c2 ad |.....0..|.....e..| |00000060| df 65 c2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.e......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6d 27 00 00 |........|....m'..| |00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 43 46 6f 6e 74 |/*..File|:..CFont| |00000090| 73 2e 63 70 0d 0d 09 43 | 6f 6e 74 61 69 6e 73 3a |s.cp...C|ontains:| |000000a0| 09 46 6f 6e 74 20 6d 61 | 6e 61 67 65 72 20 77 72 |.Font ma|nager wr| |000000b0| 61 70 70 65 72 20 63 6c | 61 73 73 65 73 0d 0d 09 |apper cl|asses...| |000000c0| 57 72 69 74 74 65 6e 20 | 62 79 3a 09 41 72 6e 6f |Written |by:.Arno| |000000d0| 20 47 6f 75 72 64 6f 6c | 0d 0d 09 43 6f 70 79 72 | Gourdol|...Copyr| |000000e0| 69 67 68 74 3a 09 a9 20 | 31 39 39 34 2d 31 39 39 |ight:.. |1994-199| |000000f0| 35 20 62 79 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |5 by App|le Compu| |00000100| 74 65 72 2c 20 49 6e 63 | 2e 2c 20 61 6c 6c 20 72 |ter, Inc|., all r| |00000110| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 0d |ights re|served..| |00000120| 0d 09 43 68 61 6e 67 65 | 20 48 69 73 74 6f 72 79 |..Change| History| |00000130| 20 28 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 66 69 | (most r|ecent fi| |00000140| 72 73 74 29 3a 0d 0d 20 | 20 20 20 20 20 20 20 3c |rst):.. | <| |00000150| 31 3e 20 20 20 20 20 33 | 2f 33 31 2f 39 36 20 20 |1> 3|/31/96 | |00000160| 20 20 61 72 6e 6f 20 20 | 20 46 69 72 73 74 20 63 | arno | First c| |00000170| 72 65 61 74 65 64 2e 0d | 0d 2a 2f 0d 0d 23 69 6e |reated..|.*/..#in| |00000180| 63 6c 75 64 65 20 22 43 | 46 6f 6e 74 73 2e 68 22 |clude "C|Fonts.h"| |00000190| 0d 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 61 73 73 |...#incl|ude "ass| |000001a0| 65 72 74 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |ert.h".#|include | |000001b0| 22 6d 61 63 72 6f 73 2e | 68 22 0d 0d 23 69 6e 63 |"macros.|h"..#inc| |000001c0| 6c 75 64 65 20 22 4e 65 | 6f 54 65 78 74 42 6f 78 |lude "Ne|oTextBox| |000001d0| 2e 68 22 0d 0d 0d 2f 2f | 09 2d 2d 2d 2d 2d 2d 2d |.h"...//|.-------| |000001e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 2f |--------|------./| |00000220| 2f 0d 2f 2f 09 43 46 6f | 6e 74 53 70 65 63 0d 2f |/.//.CFo|ntSpec./| |00000230| 2f 0d 2f 2f 09 54 68 65 | 20 43 46 6f 6e 74 53 70 |/.//.The| CFontSp| |00000240| 65 63 20 63 6c 61 73 73 | 20 6d 61 6e 61 67 65 73 |ec class| manages| |00000250| 20 66 6f 6e 74 20 69 6e | 66 6f 72 6d 61 74 69 6f | font in|formatio| |00000260| 6e 20 28 73 63 72 69 70 | 74 2c 20 66 6f 6e 74 2c |n (scrip|t, font,| |00000270| 20 73 69 7a 65 2c 20 0d | 2f 2f 09 73 74 79 6c 65 | size, .|//.style| |00000280| 29 2e 20 49 74 20 63 61 | 63 68 65 73 20 74 68 65 |). It ca|ches the| |00000290| 20 63 75 72 72 65 6e 74 | 20 66 6f 6e 74 20 73 65 | current| font se| |000002a0| 74 74 69 6e 67 73 20 74 | 6f 20 61 76 6f 69 64 73 |ttings t|o avoids| |000002b0| 20 64 6f 69 6e 67 0d 2f | 2f 09 75 6e 65 63 63 65 | doing./|/.unecce| |000002c0| 73 73 61 72 79 20 54 6f | 6f 6c 62 6f 78 20 63 61 |ssary To|olbox ca| |000002d0| 6c 6c 73 2e 20 49 74 20 | 61 6c 73 6f 20 63 61 63 |lls. It |also cac| |000002e0| 68 65 73 20 66 6f 6e 74 | 20 6d 65 74 72 69 63 73 |hes font| metrics| |000002f0| 20 66 6f 72 20 74 68 65 | 20 0d 2f 2f 09 73 61 6d | for the| .//.sam| |00000300| 65 20 72 65 61 73 6f 6e | 2e 0d 2f 2f 0d 2f 2f 09 |e reason|..//.//.| |00000310| 41 20 74 79 70 69 63 61 | 6c 20 75 73 65 20 69 73 |A typica|l use is| |00000320| 3a 0d 2f 2a 0d 20 20 43 | 46 6f 6e 74 53 70 65 63 |:./*. C|FontSpec| |00000330| 09 73 61 76 65 46 6f 6e | 74 53 70 65 63 3b 0d 20 |.saveFon|tSpec;. | |00000340| 20 43 46 6f 6e 74 53 70 | 65 63 09 73 6d 61 6c 6c | CFontSp|ec.small| |00000350| 46 6f 6e 74 53 70 65 63 | 28 73 6d 53 79 73 74 65 |FontSpec|(smSyste| |00000360| 6d 53 63 72 69 70 74 2c | 20 6b 53 6d 61 6c 6c 46 |mScript,| kSmallF| |00000370| 6f 6e 74 29 3b 0d 20 20 | 43 46 6f 6e 74 53 70 65 |ont);. |CFontSpe| |00000380| 63 09 73 79 73 74 65 6d | 46 6f 6e 74 53 70 65 63 |c.system|FontSpec| |00000390| 28 73 6d 53 79 73 74 65 | 6d 53 63 72 69 70 74 2c |(smSyste|mScript,| |000003a0| 20 6b 53 79 73 74 65 6d | 46 6f 6e 74 29 3b 0d 0d | kSystem|Font);..| |000003b0| 20 20 73 61 76 65 46 6f | 6e 74 53 70 65 63 2e 53 | saveFo|ntSpec.S| |000003c0| 61 76 65 28 29 3b 09 09 | 2f 2f 20 53 61 76 65 73 |ave();..|// Saves| |000003d0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 66 6f 6e | the cur|rent fon| |000003e0| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0d 0d 20 |t inform|ation.. | |000003f0| 20 2f 2f 20 2e 2e 2e 20 | 6d 6f 72 65 20 69 6e 69 | // ... |more ini| |00000400| 74 73 0d 0d 20 20 73 79 | 73 74 65 6d 46 6f 6e 74 |ts.. sy|stemFont| |00000410| 53 70 65 63 2e 44 72 61 | 77 53 74 72 69 6e 67 28 |Spec.Dra|wString(| |00000420| 22 48 65 6c 6c 6f 22 29 | 3b 09 2f 2f 20 55 73 65 |"Hello")|;.// Use| |00000430| 20 74 68 65 20 73 79 73 | 74 65 6d 20 66 6f 6e 74 | the sys|tem font| |00000440| 0d 0d 20 20 2f 2f 2e 2e | 2e 0d 0d 20 20 73 6d 61 |.. //..|... sma| |00000450| 6c 6c 46 6f 6e 74 53 70 | 65 63 2e 44 72 61 77 53 |llFontSp|ec.DrawS| |00000460| 74 72 69 6e 67 28 22 77 | 6f 72 64 22 29 3b 09 2f |tring("w|ord");./| |00000470| 2f 20 55 73 65 20 74 68 | 65 20 73 6d 61 6c 6c 20 |/ Use th|e small | |00000480| 64 65 66 61 75 6c 74 20 | 66 6f 6e 74 0d 0d 20 20 |default |font.. | |00000490| 73 61 76 65 46 6f 6e 74 | 53 70 65 63 2e 52 65 73 |saveFont|Spec.Res| |000004a0| 74 6f 72 65 28 29 3b 09 | 09 2f 2f 20 52 65 73 74 |tore();.|.// Rest| |000004b0| 6f 72 65 20 74 68 65 20 | 66 6f 6e 74 20 69 6e 66 |ore the |font inf| |000004c0| 6f 72 6d 61 74 69 6f 6e | 0d 0d 2a 2f 0d 2f 2f 0d |ormation|..*/.//.| |000004d0| 2f 2f 09 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//.-----|--------| |000004e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000004f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000510| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0d 0d 0d 42 6f 6f 6c |--------|....Bool| |00000520| 65 61 6e 20 43 46 6f 6e | 74 53 70 65 63 3a 3a 70 |ean CFon|tSpec::p| |00000530| 53 79 73 74 65 6d 46 6f | 6e 74 49 6e 69 74 65 64 |SystemFo|ntInited| |00000540| 20 3d 20 66 61 6c 73 65 | 3b 0d 43 46 6f 6e 74 53 | = false|;.CFontS| |00000550| 70 65 63 20 70 53 79 73 | 74 65 6d 46 6f 6e 74 53 |pec pSys|temFontS| |00000560| 70 65 63 3b 09 2f 2f 20 | 73 68 6f 75 6c 64 20 62 |pec;.// |should b| |00000570| 65 6c 6f 6e 67 20 74 6f | 20 43 46 6f 6e 74 53 70 |elong to| CFontSp| |00000580| 65 63 20 61 73 20 61 20 | 73 74 61 74 69 63 20 6d |ec as a |static m| |00000590| 65 6d 62 65 72 20 62 75 | 74 20 63 6f 6e 73 74 72 |ember bu|t constr| |000005a0| 75 63 74 6f 72 73 0d 09 | 09 09 09 09 09 09 2f 2f |uctors..|......//| |000005b0| 20 61 72 65 6e 27 74 20 | 63 61 6c 6c 65 64 20 66 | aren't |called f| |000005c0| 72 6f 6d 20 43 46 4d 20 | 69 6e 69 74 69 61 6c 69 |rom CFM |initiali| |000005d0| 7a 61 74 69 6f 6e 0d 0d | 42 6f 6f 6c 65 61 6e 20 |zation..|Boolean | |000005e0| 43 46 6f 6e 74 53 70 65 | 63 3a 3a 70 53 6d 61 6c |CFontSpe|c::pSmal| |000005f0| 6c 46 6f 6e 74 49 6e 69 | 74 65 64 20 3d 20 66 61 |lFontIni|ted = fa| |00000600| 6c 73 65 3b 0d 43 46 6f | 6e 74 53 70 65 63 20 70 |lse;.CFo|ntSpec p| |00000610| 53 6d 61 6c 6c 46 6f 6e | 74 53 70 65 63 3b 09 2f |SmallFon|tSpec;./| |00000620| 2f 20 73 68 6f 75 6c 64 | 20 62 65 6c 6f 6e 67 20 |/ should| belong | |00000630| 74 6f 20 43 46 6f 6e 74 | 53 70 65 63 20 61 73 20 |to CFont|Spec as | |00000640| 61 20 73 74 61 74 69 63 | 20 6d 65 6d 62 65 72 20 |a static| member | |00000650| 62 75 74 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 73 |but cons|tructors| |00000660| 0d 09 09 09 09 09 09 09 | 2f 2f 20 61 72 65 6e 27 |........|// aren'| |00000670| 74 20 63 61 6c 6c 65 64 | 20 66 72 6f 6d 20 43 46 |t called| from CF| |00000680| 4d 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |M initia|lization| |00000690| 0d 0d 48 61 6e 64 6c 65 | 20 43 46 6f 6e 74 53 70 |..Handle| CFontSp| |000006a0| 65 63 3a 3a 70 49 74 6c | 30 20 3d 20 4e 55 4c 4c |ec::pItl|0 = NULL| |000006b0| 3b 0d 48 61 6e 64 6c 65 | 20 43 46 6f 6e 74 53 70 |;.Handle| CFontSp| |000006c0| 65 63 3a 3a 70 49 74 6c | 31 20 3d 20 4e 55 4c 4c |ec::pItl|1 = NULL| |000006d0| 3b 0d 48 61 6e 64 6c 65 | 20 43 46 6f 6e 74 53 70 |;.Handle| CFontSp| |000006e0| 65 63 3a 3a 70 49 74 6c | 32 20 3d 20 4e 55 4c 4c |ec::pItl|2 = NULL| |000006f0| 3b 0d 0d 73 68 6f 72 74 | 20 43 46 6f 6e 74 53 70 |;..short| CFontSp| |00000700| 65 63 3a 3a 66 46 6f 6e | 74 54 6f 53 63 72 69 70 |ec::fFon|tToScrip| |00000710| 74 43 61 63 68 65 46 6f | 6e 74 20 3d 20 30 3b 0d |tCacheFo|nt = 0;.| |00000720| 53 63 72 69 70 74 43 6f | 64 65 20 43 46 6f 6e 74 |ScriptCo|de CFont| |00000730| 53 70 65 63 3a 3a 66 46 | 6f 6e 74 54 6f 53 63 72 |Spec::fF|ontToScr| |00000740| 69 70 74 43 61 63 68 65 | 53 63 72 69 70 74 20 3d |iptCache|Script =| |00000750| 20 73 6d 53 79 73 74 65 | 6d 53 63 72 69 70 74 3b | smSyste|mScript;| |00000760| 0d 09 0d 53 63 72 69 70 | 74 43 6f 64 65 20 43 46 |...Scrip|tCode CF| |00000770| 6f 6e 74 53 70 65 63 3a | 3a 66 53 75 70 70 6f 72 |ontSpec:|:fSuppor| |00000780| 74 73 43 6f 6e 64 65 6e | 73 65 43 61 63 68 65 53 |tsConden|seCacheS| |00000790| 63 72 69 70 74 20 3d 20 | 73 6d 52 6f 6d 61 6e 3b |cript = |smRoman;| |000007a0| 0d 42 6f 6f 6c 65 61 6e | 20 43 46 6f 6e 74 53 70 |.Boolean| CFontSp| |000007b0| 65 63 3a 3a 66 53 75 70 | 70 6f 72 74 73 43 6f 6e |ec::fSup|portsCon| |000007c0| 64 65 6e 73 65 43 61 63 | 68 65 20 3d 20 74 72 75 |denseCac|he = tru| |000007d0| 65 3b 0d 09 0d 53 63 72 | 69 70 74 43 6f 64 65 20 |e;...Scr|iptCode | |000007e0| 43 46 6f 6e 74 53 70 65 | 63 3a 3a 66 53 63 72 69 |CFontSpe|c::fScri| |000007f0| 70 74 49 73 52 54 4c 43 | 61 63 68 65 53 63 72 69 |ptIsRTLC|acheScri| |00000800| 70 74 20 3d 20 73 6d 52 | 6f 6d 61 6e 3b 0d 42 6f |pt = smR|oman;.Bo| |00000810| 6f 6c 65 61 6e 20 43 46 | 6f 6e 74 53 70 65 63 3a |olean CF|ontSpec:| |00000820| 3a 66 53 63 72 69 70 74 | 49 73 52 54 4c 43 61 63 |:fScript|IsRTLCac| |00000830| 68 65 20 3d 20 66 61 6c | 73 65 3b 09 09 09 2f 2f |he = fal|se;...//| |00000840| 20 52 6f 6d 61 6e 20 69 | 73 20 6e 6f 74 20 72 69 | Roman i|s not ri| |00000850| 67 68 74 20 74 6f 20 6c | 65 66 74 0d 09 0d 53 63 |ght to l|eft...Sc| |00000860| 72 69 70 74 43 6f 64 65 | 20 43 46 6f 6e 74 53 70 |riptCode| CFontSp| |00000870| 65 63 3a 3a 66 53 63 72 | 69 70 74 46 6f 6e 74 43 |ec::fScr|iptFontC| |00000880| 61 63 68 65 53 63 72 69 | 70 74 20 3d 20 73 6d 41 |acheScri|pt = smA| |00000890| 6c 6c 53 63 72 69 70 74 | 73 3b 0d 73 68 6f 72 74 |llScript|s;.short| |000008a0| 20 43 46 6f 6e 74 53 70 | 65 63 3a 3a 66 53 63 72 | CFontSp|ec::fScr| |000008b0| 69 70 74 46 6f 6e 74 43 | 61 63 68 65 46 6f 6e 74 |iptFontC|acheFont| |000008c0| 20 3d 20 31 30 34 39 3b | 0d 6c 6f 6e 67 20 43 46 | = 1049;|.long CF| |000008d0| 6f 6e 74 53 70 65 63 3a | 3a 66 53 63 72 69 70 74 |ontSpec:|:fScript| |000008e0| 46 6f 6e 74 43 61 63 68 | 65 46 6f 6e 74 41 6e 64 |FontCach|eFontAnd| |000008f0| 53 69 7a 65 20 3d 20 30 | 3b 0d 0d 0d 2f 2f 0d 2f |Size = 0|;...//./| |00000900| 2f 09 43 46 6f 6e 74 53 | 70 65 63 3a 3a 43 46 6f |/.CFontS|pec::CFo| |00000910| 6e 74 53 70 65 63 0d 2f | 2f 0d 2f 2f 0d 0d 43 46 |ntSpec./|/.//..CF| |00000920| 6f 6e 74 53 70 65 63 3a | 3a 43 46 6f 6e 74 53 70 |ontSpec:|:CFontSp| |00000930| 65 63 28 76 6f 69 64 29 | 20 3a 0d 09 66 53 63 72 |ec(void)| :..fScr| |00000940| 69 70 74 28 73 6d 4e 6f | 53 63 72 69 70 74 29 2c |ipt(smNo|Script),| |00000950| 0d 09 66 4c 69 6e 65 48 | 65 69 67 68 74 28 2d 31 |..fLineH|eight(-1| |00000960| 30 29 2c 0d 09 66 46 6f | 6e 74 28 2d 31 30 29 2c |0),..fFo|nt(-10),| |00000970| 0d 09 66 53 74 79 6c 65 | 28 6e 6f 72 6d 61 6c 29 |..fStyle|(normal)| |00000980| 2c 0d 09 66 4d 6f 64 65 | 28 73 72 63 4f 72 29 09 |,..fMode|(srcOr).| |00000990| 0d 7b 0d 23 69 66 6e 64 | 65 66 20 4e 44 45 42 55 |.{.#ifnd|ef NDEBU| |000009a0| 47 0d 09 66 53 61 76 65 | 43 6f 75 6e 74 20 3d 20 |G..fSave|Count = | |000009b0| 30 3b 0d 23 65 6e 64 69 | 66 0d 0d 7d 0d 0d 0d 0d |0;.#endi|f..}....| |000009c0| 2f 2f 0d 2f 2f 09 43 46 | 6f 6e 74 53 70 65 63 3a |//.//.CF|ontSpec:| |000009d0| 3a 43 46 6f 6e 74 53 70 | 65 63 0d 2f 2f 0d 2f 2f |:CFontSp|ec.//.//| |000009e0| 0d 0d 43 46 6f 6e 74 53 | 70 65 63 3a 3a 43 46 6f |..CFontS|pec::CFo| |000009f0| 6e 74 53 70 65 63 28 53 | 63 72 69 70 74 43 6f 64 |ntSpec(S|criptCod| |00000a00| 65 20 73 63 72 69 70 74 | 43 6f 64 65 2c 0d 09 09 |e script|Code,...| |00000a10| 09 09 09 20 46 6f 6e 74 | 43 6f 64 65 20 66 6f 6e |... Font|Code fon| |00000a20| 74 29 20 3a 0d 09 66 53 | 63 72 69 70 74 28 73 6d |t) :..fS|cript(sm| |00000a30| 4e 6f 53 63 72 69 70 74 | 29 2c 0d 09 66 4c 69 6e |NoScript|),..fLin| |00000a40| 65 48 65 69 67 68 74 28 | 2d 31 30 29 2c 0d 09 66 |eHeight(|-10),..f| |00000a50| 46 6f 6e 74 28 2d 31 30 | 29 2c 0d 09 66 53 74 79 |Font(-10|),..fSty| |00000a60| 6c 65 28 6e 6f 72 6d 61 | 6c 29 2c 0d 09 66 4d 6f |le(norma|l),..fMo| |00000a70| 64 65 28 73 72 63 4f 72 | 29 0d 7b 0d 23 69 66 6e |de(srcOr|).{.#ifn| |00000a80| 64 65 66 20 4e 44 45 42 | 55 47 0d 09 66 53 61 76 |def NDEB|UG..fSav| |00000a90| 65 43 6f 75 6e 74 20 3d | 20 30 3b 0d 23 65 6e 64 |eCount =| 0;.#end| |00000aa0| 69 66 0d 0d 09 74 68 69 | 73 2d 3e 53 65 74 46 6f |if...thi|s->SetFo| |00000ab0| 6e 74 28 73 63 72 69 70 | 74 43 6f 64 65 2c 20 66 |nt(scrip|tCode, f| |00000ac0| 6f 6e 74 29 3b 0d 7d 0d | 0d 0d 0d 2f 2f 0d 2f 2f |ont);.}.|...//.//| |00000ad0| 09 43 46 6f 6e 74 53 70 | 65 63 3a 3a 7e 43 46 6f |.CFontSp|ec::~CFo| |00000ae0| 6e 74 53 70 65 63 0d 2f | 2f 0d 2f 2f 09 43 68 65 |ntSpec./|/.//.Che| |00000af0| 63 6b 20 74 68 61 74 20 | 74 68 65 20 63 61 6c 6c |ck that |the call| |00000b00| 73 20 74 6f 20 53 61 76 | 65 20 61 6e 64 20 52 65 |s to Sav|e and Re| |00000b10| 73 74 6f 72 65 20 77 65 | 72 65 20 62 61 6c 61 6e |store we|re balan| |00000b20| 63 65 64 0d 2f 2f 0d 0d | 43 46 6f 6e 74 53 70 65 |ced.//..|CFontSpe| |00000b30| 63 3a 3a 7e 43 46 6f 6e | 74 53 70 65 63 28 29 0d |c::~CFon|tSpec().| |00000b40| 7b 0d 23 69 66 6e 64 65 | 66 20 4e 44 45 42 55 47 |{.#ifnde|f NDEBUG| |00000b50| 0d 09 61 73 73 65 72 74 | 28 66 53 61 76 65 43 6f |..assert|(fSaveCo| |00000b60| 75 6e 74 20 3d 3d 20 30 | 29 3b 0d 23 65 6e 64 69 |unt == 0|);.#endi| |00000b70| 66 0d 7d 0d 0d 0d 0d 2f | 2f 0d 2f 2f 09 43 46 6f |f.}..../|/.//.CFo| |00000b80| 6e 74 53 70 65 63 3a 3a | 46 6f 6e 74 54 6f 53 63 |ntSpec::|FontToSc| |00000b90| 72 69 70 74 0d 2f 2f 0d | 2f 2f 0d 0d 53 63 72 69 |ript.//.|//..Scri| |00000ba0| 70 74 43 6f 64 65 20 43 | 46 6f 6e 74 53 70 65 63 |ptCode C|FontSpec| |00000bb0| 3a 3a 46 6f 6e 74 54 6f | 53 63 72 69 70 74 28 73 |::FontTo|Script(s| |00000bc0| 68 6f 72 74 20 66 6f 6e | 74 29 0d 7b 0d 09 69 66 |hort fon|t).{..if| |00000bd0| 20 28 66 6f 6e 74 20 3d | 3d 20 66 46 6f 6e 74 54 | (font =|= fFontT| |00000be0| 6f 53 63 72 69 70 74 43 | 61 63 68 65 46 6f 6e 74 |oScriptC|acheFont| |00000bf0| 29 0d 09 7b 0d 09 09 72 | 65 74 75 72 6e 20 66 46 |)..{...r|eturn fF| |00000c00| 6f 6e 74 54 6f 53 63 72 | 69 70 74 43 61 63 68 65 |ontToScr|iptCache| |00000c10| 53 63 72 69 70 74 3b 0d | 09 7d 0d 09 65 6c 73 65 |Script;.|.}..else| |00000c20| 0d 09 7b 0d 09 09 66 46 | 6f 6e 74 54 6f 53 63 72 |..{...fF|ontToScr| |00000c30| 69 70 74 43 61 63 68 65 | 53 63 72 69 70 74 20 3d |iptCache|Script =| |00000c40| 20 66 6f 6e 74 3b 0d 09 | 09 72 65 74 75 72 6e 20 | font;..|.return | |00000c50| 66 46 6f 6e 74 54 6f 53 | 63 72 69 70 74 43 61 63 |fFontToS|criptCac| |00000c60| 68 65 53 63 72 69 70 74 | 20 3d 20 3a 3a 46 6f 6e |heScript| = ::Fon| |00000c70| 74 54 6f 53 63 72 69 70 | 74 28 66 6f 6e 74 29 3b |tToScrip|t(font);| |00000c80| 0d 09 7d 0d 7d 0d 0d 0d | 0d 2f 2f 0d 2f 2f 09 43 |..}.}...|.//.//.C| |00000c90| 46 6f 6e 74 53 70 65 63 | 3a 3a 53 75 70 70 6f 72 |FontSpec|::Suppor| |00000ca0| 74 43 6f 6e 64 65 6e 73 | 65 0d 2f 2f 0d 2f 2f 0d |tCondens|e.//.//.| |00000cb0| 0d 42 6f 6f 6c 65 61 6e | 20 43 46 6f 6e 74 53 70 |.Boolean| CFontSp| |00000cc0| 65 63 3a 3a 53 75 70 70 | 6f 72 74 43 6f 6e 64 65 |ec::Supp|ortConde| |00000cd0| 6e 73 65 28 53 63 72 69 | 70 74 43 6f 64 65 20 73 |nse(Scri|ptCode s| |00000ce0| 63 72 69 70 74 29 0d 7b | 0d 09 69 66 20 28 73 63 |cript).{|..if (sc| |00000cf0| 72 69 70 74 20 3d 3d 20 | 66 53 75 70 70 6f 72 74 |ript == |fSupport| |00000d00| 73 43 6f 6e 64 65 6e 73 | 65 43 61 63 68 65 53 63 |sCondens|eCacheSc| |00000d10| 72 69 70 74 29 0d 09 7b | 0d 09 09 72 65 74 75 72 |ript)..{|...retur| |00000d20| 6e 20 66 53 75 70 70 6f | 72 74 73 43 6f 6e 64 65 |n fSuppo|rtsConde| |00000d30| 6e 73 65 43 61 63 68 65 | 3b 0d 09 7d 0d 09 65 6c |nseCache|;..}..el| |00000d40| 73 65 0d 09 7b 0d 09 09 | 66 53 75 70 70 6f 72 74 |se..{...|fSupport| |00000d50| 73 43 6f 6e 64 65 6e 73 | 65 43 61 63 68 65 53 63 |sCondens|eCacheSc| |00000d60| 72 69 70 74 20 3d 20 73 | 63 72 69 70 74 3b 0d 09 |ript = s|cript;..| |00000d70| 09 72 65 74 75 72 6e 20 | 66 53 75 70 70 6f 72 74 |.return |fSupport| |00000d80| 73 43 6f 6e 64 65 6e 73 | 65 43 61 63 68 65 20 3d |sCondens|eCache =| |00000d90| 20 28 28 3a 3a 47 65 74 | 53 63 72 69 70 74 56 61 | ((::Get|ScriptVa| |00000da0| 72 69 61 62 6c 65 28 73 | 63 72 69 70 74 2c 20 73 |riable(s|cript, s| |00000db0| 6d 53 63 72 69 70 74 56 | 61 6c 69 64 53 74 79 6c |mScriptV|alidStyl| |00000dc0| 65 73 29 20 26 20 63 6f | 6e 64 65 6e 73 65 29 20 |es) & co|ndense) | |00000dd0| 21 3d 20 30 29 3b 0d 09 | 7d 0d 7d 0d 0d 0d 0d 2f |!= 0);..|}.}..../| |00000de0| 2f 0d 2f 2f 09 43 46 6f | 6e 74 53 70 65 63 3a 3a |/.//.CFo|ntSpec::| |00000df0| 53 63 72 69 70 74 49 73 | 52 54 4c 0d 2f 2f 0d 2f |ScriptIs|RTL.//./| |00000e00| 2f 0d 0d 42 6f 6f 6c 65 | 61 6e 20 43 46 6f 6e 74 |/..Boole|an CFont| |00000e10| 53 70 65 63 3a 3a 53 63 | 72 69 70 74 49 73 52 54 |Spec::Sc|riptIsRT| |00000e20| 4c 28 53 63 72 69 70 74 | 43 6f 64 65 20 73 63 72 |L(Script|Code scr| |00000e30| 69 70 74 29 0d 7b 0d 09 | 69 66 20 28 73 63 72 69 |ipt).{..|if (scri| |00000e40| 70 74 20 3d 3d 20 66 53 | 63 72 69 70 74 49 73 52 |pt == fS|criptIsR| |00000e50| 54 4c 43 61 63 68 65 53 | 63 72 69 70 74 29 0d 09 |TLCacheS|cript)..| |00000e60| 7b 0d 09 09 72 65 74 75 | 72 6e 20 66 53 63 72 69 |{...retu|rn fScri| |00000e70| 70 74 49 73 52 54 4c 43 | 61 63 68 65 3b 0d 09 7d |ptIsRTLC|ache;..}| |00000e80| 0d 09 65 6c 73 65 0d 09 | 7b 0d 09 09 66 53 63 72 |..else..|{...fScr| |00000e90| 69 70 74 49 73 52 54 4c | 43 61 63 68 65 53 63 72 |iptIsRTL|CacheScr| |00000ea0| 69 70 74 20 3d 20 73 63 | 72 69 70 74 3b 0d 09 09 |ipt = sc|ript;...| |00000eb0| 72 65 74 75 72 6e 20 66 | 53 63 72 69 70 74 49 73 |return f|ScriptIs| |00000ec0| 52 54 4c 43 61 63 68 65 | 20 3d 20 28 3a 3a 47 65 |RTLCache| = (::Ge| |00000ed0| 74 53 63 72 69 70 74 56 | 61 72 69 61 62 6c 65 28 |tScriptV|ariable(| |00000ee0| 73 63 72 69 70 74 2c 20 | 73 6d 53 63 72 69 70 74 |script, |smScript| |00000ef0| 52 69 67 68 74 29 20 21 | 3d 20 30 29 3b 0d 09 7d |Right) !|= 0);..}| |00000f00| 0d 7d 0d 0d 0d 0d 2f 2f | 0d 2f 2f 09 43 46 6f 6e |.}....//|.//.CFon| |00000f10| 74 53 70 65 63 3a 3a 53 | 63 72 69 70 74 46 6f 6e |tSpec::S|criptFon| |00000f20| 74 0d 2f 2f 0d 2f 2f 0d | 0d 6c 6f 6e 67 20 43 46 |t.//.//.|.long CF| |00000f30| 6f 6e 74 53 70 65 63 3a | 3a 53 63 72 69 70 74 46 |ontSpec:|:ScriptF| |00000f40| 6f 6e 74 28 53 63 72 69 | 70 74 43 6f 64 65 20 73 |ont(Scri|ptCode s| |00000f50| 63 72 69 70 74 2c 20 73 | 68 6f 72 74 20 66 6f 6e |cript, s|hort fon| |00000f60| 74 29 0d 7b 0d 09 69 66 | 20 28 28 73 63 72 69 70 |t).{..if| ((scrip| |00000f70| 74 20 3d 3d 20 66 53 63 | 72 69 70 74 46 6f 6e 74 |t == fSc|riptFont| |00000f80| 43 61 63 68 65 53 63 72 | 69 70 74 29 20 26 26 20 |CacheScr|ipt) && | |00000f90| 28 66 6f 6e 74 20 3d 3d | 20 66 53 63 72 69 70 74 |(font ==| fScript| |00000fa0| 46 6f 6e 74 43 61 63 68 | 65 46 6f 6e 74 29 29 0d |FontCach|eFont)).| |00000fb0| 09 7b 0d 09 09 72 65 74 | 75 72 6e 20 66 53 63 72 |.{...ret|urn fScr| |00000fc0| 69 70 74 46 6f 6e 74 43 | 61 63 68 65 46 6f 6e 74 |iptFontC|acheFont| |00000fd0| 41 6e 64 53 69 7a 65 3b | 0d 09 7d 0d 09 65 6c 73 |AndSize;|..}..els| |00000fe0| 65 0d 09 7b 0d 09 09 66 | 53 63 72 69 70 74 46 6f |e..{...f|ScriptFo| |00000ff0| 6e 74 43 61 63 68 65 53 | 63 72 69 70 74 20 3d 20 |ntCacheS|cript = | |00001000| 73 63 72 69 70 74 3b 0d | 09 09 66 53 63 72 69 70 |script;.|..fScrip| |00001010| 74 46 6f 6e 74 43 61 63 | 68 65 46 6f 6e 74 20 3d |tFontCac|heFont =| |00001020| 20 66 6f 6e 74 3b 0d 09 | 09 72 65 74 75 72 6e 20 | font;..|.return | |00001030| 66 53 63 72 69 70 74 46 | 6f 6e 74 43 61 63 68 65 |fScriptF|ontCache| |00001040| 46 6f 6e 74 41 6e 64 53 | 69 7a 65 20 3d 20 3a 3a |FontAndS|ize = ::| |00001050| 47 65 74 53 63 72 69 70 | 74 56 61 72 69 61 62 6c |GetScrip|tVariabl| |00001060| 65 28 73 63 72 69 70 74 | 2c 20 66 6f 6e 74 29 3b |e(script|, font);| |00001070| 0d 09 7d 0d 7d 0d 0d 0d | 0d 2f 2f 0d 2f 2f 09 43 |..}.}...|.//.//.C| |00001080| 46 6f 6e 74 53 70 65 63 | 3a 3a 53 61 76 65 0d 2f |FontSpec|::Save./| |00001090| 2f 0d 2f 2f 09 53 74 6f | 72 65 20 69 6e 20 74 68 |/.//.Sto|re in th| |000010a0| 65 20 6f 62 6a 65 63 74 | 20 74 68 65 20 63 75 72 |e object| the cur| |000010b0| 72 65 6e 74 20 76 61 6c | 75 65 73 20 66 6f 72 20 |rent val|ues for | |000010c0| 74 68 65 20 66 6f 6e 74 | 20 0d 2f 2f 0d 0d 76 6f |the font| .//..vo| |000010d0| 69 64 20 43 46 6f 6e 74 | 53 70 65 63 3a 3a 53 61 |id CFont|Spec::Sa| |000010e0| 76 65 28 76 6f 69 64 29 | 0d 7b 0d 09 47 72 61 66 |ve(void)|.{..Graf| |000010f0| 50 74 72 20 63 75 72 50 | 6f 72 74 3b 0d 09 47 65 |Ptr curP|ort;..Ge| |00001100| 74 50 6f 72 74 28 26 63 | 75 72 50 6f 72 74 29 3b |tPort(&c|urPort);| |00001110| 0d 0d 09 2f 2f 20 52 65 | 61 64 20 74 68 65 20 76 |...// Re|ad the v| |00001120| 61 6c 75 65 73 20 64 69 | 72 65 63 74 6c 79 20 66 |alues di|rectly f| |00001130| 72 6f 6d 20 74 68 65 20 | 70 6f 72 74 20 64 61 74 |rom the |port dat| |00001140| 61 20 73 74 72 75 63 74 | 75 72 65 0d 09 2f 2f 20 |a struct|ure..// | |00001150| 28 62 65 72 6b 29 0d 09 | 66 46 6f 6e 74 20 3d 20 |(berk)..|fFont = | |00001160| 63 75 72 50 6f 72 74 2d | 3e 74 78 46 6f 6e 74 3b |curPort-|>txFont;| |00001170| 0d 09 66 53 63 72 69 70 | 74 20 3d 20 46 6f 6e 74 |..fScrip|t = Font| |00001180| 54 6f 53 63 72 69 70 74 | 28 66 46 6f 6e 74 29 3b |ToScript|(fFont);| |00001190| 0d 09 66 53 69 7a 65 20 | 3d 20 63 75 72 50 6f 72 |..fSize |= curPor| |000011a0| 74 2d 3e 74 78 53 69 7a | 65 3b 0d 09 66 53 74 79 |t->txSiz|e;..fSty| |000011b0| 6c 65 20 3d 20 63 75 72 | 50 6f 72 74 2d 3e 74 78 |le = cur|Port->tx| |000011c0| 46 61 63 65 3b 0d 09 66 | 4d 6f 64 65 20 3d 20 63 |Face;..f|Mode = c| |000011d0| 75 72 50 6f 72 74 2d 3e | 74 78 4d 6f 64 65 3b 0d |urPort->|txMode;.| |000011e0| 0d 09 66 4c 69 6e 65 48 | 65 69 67 68 74 20 3d 20 |..fLineH|eight = | |000011f0| 30 3b 09 09 09 09 09 09 | 09 2f 2f 20 4d 61 72 6b |0;......|.// Mark| |00001200| 20 74 68 65 20 66 6f 6e | 74 20 69 6e 66 6f 20 61 | the fon|t info a| |00001210| 73 20 69 6e 76 61 6c 69 | 64 0d 0d 23 69 66 6e 64 |s invali|d..#ifnd| |00001220| 65 66 20 4e 44 45 42 55 | 47 0d 09 2f 2f 20 54 72 |ef NDEBU|G..// Tr| |00001230| 61 63 6b 20 68 6f 77 20 | 6d 61 6e 79 20 74 69 6d |ack how |many tim| |00001240| 65 73 20 73 61 76 65 20 | 61 6e 64 20 72 65 73 74 |es save |and rest| |00001250| 6f 72 65 20 61 72 65 20 | 63 61 6c 6c 65 64 0d 09 |ore are |called..| |00001260| 66 53 61 76 65 43 6f 75 | 6e 74 2b 2b 3b 0d 23 65 |fSaveCou|nt++;.#e| |00001270| 6e 64 69 66 0d 0d 7d 0d | 0d 0d 0d 2f 2f 0d 2f 2f |ndif..}.|...//.//| |00001280| 09 43 46 6f 6e 74 53 70 | 65 63 3a 3a 52 65 73 74 |.CFontSp|ec::Rest| |00001290| 6f 72 65 0d 2f 2f 0d 2f | 2f 09 53 65 74 73 20 74 |ore.//./|/.Sets t| |000012a0| 68 65 20 63 75 72 72 65 | 6e 74 20 70 6f 72 74 20 |he curre|nt port | |000012b0| 66 6f 6e 74 20 63 68 61 | 72 61 63 74 65 72 69 73 |font cha|racteris| |000012c0| 74 69 63 73 20 74 6f 20 | 74 68 6f 73 65 20 6f 66 |tics to |those of| |000012d0| 20 74 68 65 20 6f 62 6a | 65 63 74 2c 0d 2f 2f 09 | the obj|ect,.//.| |000012e0| 70 72 65 73 75 6d 61 62 | 6c 79 20 73 74 6f 72 65 |presumab|ly store| |000012f0| 64 20 62 79 20 61 6e 20 | 65 61 72 6c 69 65 72 20 |d by an |earlier | |00001300| 63 61 6c 6c 20 74 6f 20 | 53 61 76 65 0d 2f 2f 0d |call to |Save.//.| |00001310| 0d 76 6f 69 64 20 43 46 | 6f 6e 74 53 70 65 63 3a |.void CF|ontSpec:| |00001320| 3a 52 65 73 74 6f 72 65 | 28 29 0d 7b 0d 09 55 73 |:Restore|().{..Us| |00001330| 65 28 29 3b 0d 0d 23 69 | 66 6e 64 65 66 20 4e 44 |e();..#i|fndef ND| |00001340| 45 42 55 47 0d 09 2f 2f | 20 54 72 61 63 6b 20 68 |EBUG..//| Track h| |00001350| 6f 77 20 6d 61 6e 79 20 | 74 69 6d 65 73 20 73 61 |ow many |times sa| |00001360| 76 65 20 61 6e 64 20 72 | 65 73 74 6f 72 65 20 61 |ve and r|estore a| |00001370| 72 65 20 63 61 6c 6c 65 | 64 0d 09 66 53 61 76 65 |re calle|d..fSave| |00001380| 43 6f 75 6e 74 2d 2d 3b | 0d 23 65 6e 64 69 66 0d |Count--;|.#endif.| |00001390| 0d 7d 0d 0d 0d 0d 2f 2f | 0d 2f 2f 09 43 46 6f 6e |.}....//|.//.CFon| |000013a0| 74 53 70 65 63 3a 3a 53 | 65 74 46 6f 6e 74 0d 2f |tSpec::S|etFont./| |000013b0| 2f 0d 2f 2f 0d 0d 76 6f | 69 64 20 43 46 6f 6e 74 |/.//..vo|id CFont| |000013c0| 53 70 65 63 3a 3a 53 65 | 74 46 6f 6e 74 28 53 63 |Spec::Se|tFont(Sc| |000013d0| 72 69 70 74 43 6f 64 65 | 20 73 63 72 69 70 74 43 |riptCode| scriptC| |000013e0| 6f 64 65 2c 0d 09 09 09 | 09 09 09 20 20 46 6f 6e |ode,....|... Fon| |000013f0| 74 43 6f 64 65 20 66 6f | 6e 74 29 0d 7b 0d 09 2f |tCode fo|nt).{../| |00001400| 2f 20 43 68 65 63 6b 20 | 74 68 61 74 20 74 68 65 |/ Check |that the| |00001410| 20 73 63 72 69 70 74 20 | 63 6f 64 65 20 69 73 20 | script |code is | |00001420| 69 6e 20 61 20 72 65 61 | 73 6f 6e 61 62 6c 65 20 |in a rea|sonable | |00001430| 72 61 6e 67 65 0d 09 2f | 2f 20 2d 32 20 69 73 20 |range../|/ -2 is | |00001440| 63 75 72 72 65 6e 74 20 | 73 63 72 69 70 74 2c 20 |current |script, | |00001450| 2d 31 20 73 79 73 74 65 | 6d 20 73 63 72 69 70 74 |-1 syste|m script| |00001460| 0d 09 2f 2f 20 77 65 20 | 69 67 6e 6f 72 65 20 2d |..// we |ignore -| |00001470| 33 20 3d 20 61 6c 6c 20 | 73 63 72 69 70 74 73 0d |3 = all |scripts.| |00001480| 09 2f 2f 20 74 68 65 20 | 6c 61 73 74 20 73 63 72 |.// the |last scr| |00001490| 69 70 74 2c 20 33 32 2c | 20 69 73 20 66 6f 72 20 |ipt, 32,| is for | |000014a0| 75 6e 69 6e 74 65 72 70 | 72 65 74 65 64 20 73 79 |uninterp|reted sy| |000014b0| 6d 62 6f 6c 73 0d 09 61 | 73 73 65 72 74 28 28 73 |mbols..a|ssert((s| |000014c0| 63 72 69 70 74 43 6f 64 | 65 20 3e 3d 20 2d 32 29 |criptCod|e >= -2)| |000014d0| 20 26 26 20 28 73 63 72 | 69 70 74 43 6f 64 65 20 | && (scr|iptCode | |000014e0| 3c 3d 20 33 32 29 29 3b | 0d 0d 09 61 73 73 65 72 |<= 32));|...asser| |000014f0| 74 28 28 66 6f 6e 74 20 | 3d 3d 20 6b 4d 6f 6e 6f |t((font |== kMono| |00001500| 73 70 61 63 65 64 46 6f | 6e 74 29 20 7c 7c 0d 09 |spacedFo|nt) ||..| |00001510| 09 20 20 20 28 66 6f 6e | 74 20 3d 3d 20 6b 50 72 |. (fon|t == kPr| |00001520| 65 66 65 72 65 64 46 6f | 6e 74 29 20 7c 7c 0d 09 |eferedFo|nt) ||..| |00001530| 09 20 20 20 28 66 6f 6e | 74 20 3d 3d 20 6b 53 6d |. (fon|t == kSm| |00001540| 61 6c 6c 46 6f 6e 74 29 | 20 7c 7c 0d 09 09 20 20 |allFont)| ||... | |00001550| 20 28 66 6f 6e 74 20 3d | 3d 20 6b 53 79 73 74 65 | (font =|= kSyste| |00001560| 6d 46 6f 6e 74 29 20 7c | 7c 0d 09 09 20 20 20 28 |mFont) |||... (| |00001570| 66 6f 6e 74 20 3d 3d 20 | 6b 41 70 70 6c 69 63 61 |font == |kApplica| |00001580| 74 69 6f 6e 46 6f 6e 74 | 29 20 7c 7c 20 0d 09 09 |tionFont|) || ...| |00001590| 20 20 20 28 66 6f 6e 74 | 20 3d 3d 20 6b 48 65 6c | (font| == kHel| |000015a0| 70 4d 61 6e 61 67 65 72 | 46 6f 6e 74 29 29 3b 0d |pManager|Font));.| |000015b0| 0d 09 7b 0d 09 09 6c 6f | 6e 67 20 66 6f 6e 74 41 |..{...lo|ng fontA| |000015c0| 6e 64 53 69 7a 65 3b 0d | 0d 09 09 2f 2f 20 41 73 |ndSize;.|...// As| |000015d0| 6b 20 74 68 65 20 53 63 | 72 69 70 74 20 6d 61 6e |k the Sc|ript man| |000015e0| 61 67 65 72 20 77 68 61 | 74 20 74 68 65 20 66 6f |ager wha|t the fo| |000015f0| 6e 74 20 72 65 61 6c 6c | 79 20 69 73 0d 09 09 66 |nt reall|y is...f| |00001600| 6f 6e 74 41 6e 64 53 69 | 7a 65 20 3d 20 53 63 72 |ontAndSi|ze = Scr| |00001610| 69 70 74 46 6f 6e 74 28 | 73 63 72 69 70 74 43 6f |iptFont(|scriptCo| |00001620| 64 65 2c 20 66 6f 6e 74 | 29 3b 0d 0d 09 09 2f 2f |de, font|);....//| |00001630| 20 53 65 74 20 74 68 65 | 20 66 6f 6e 74 20 61 6e | Set the| font an| |00001640| 64 20 73 69 7a 65 0d 09 | 09 66 46 6f 6e 74 20 3d |d size..|.fFont =| |00001650| 20 48 69 67 68 57 6f 72 | 64 28 66 6f 6e 74 41 6e | HighWor|d(fontAn| |00001660| 64 53 69 7a 65 29 3b 0d | 09 09 66 53 69 7a 65 20 |dSize);.|..fSize | |00001670| 3d 20 4c 6f 77 57 6f 72 | 64 28 66 6f 6e 74 41 6e |= LowWor|d(fontAn| |00001680| 64 53 69 7a 65 29 3b 0d | 0d 09 09 66 53 63 72 69 |dSize);.|...fScri| |00001690| 70 74 20 3d 20 46 6f 6e | 74 54 6f 53 63 72 69 70 |pt = Fon|tToScrip| |000016a0| 74 28 66 46 6f 6e 74 29 | 3b 0d 09 09 66 53 74 79 |t(fFont)|;...fSty| |000016b0| 6c 65 20 3d 20 6e 6f 72 | 6d 61 6c 3b 0d 09 09 66 |le = nor|mal;...f| |000016c0| 52 69 67 68 74 54 6f 4c | 65 66 74 20 3d 20 53 63 |RightToL|eft = Sc| |000016d0| 72 69 70 74 49 73 52 54 | 4c 28 66 53 63 72 69 70 |riptIsRT|L(fScrip| |000016e0| 74 29 3b 0d 09 09 66 4c | 69 6e 65 48 65 69 67 68 |t);...fL|ineHeigh| |000016f0| 74 20 3d 20 30 3b 09 09 | 09 09 09 09 2f 2f 20 4e |t = 0;..|....// N| |00001700| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 66 6f 6e |ote that| the fon| |00001710| 74 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 77 69 |t inform|ation wi| |00001720| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 62 65 20 75 70 |ll need |to be up| |00001730| 64 61 74 65 64 0d 09 7d | 0d 7d 0d 0d 0d 0d 2f 2f |dated..}|.}....//| |00001740| 0d 2f 2f 09 43 46 6f 6e | 74 53 70 65 63 3a 3a 53 |.//.CFon|tSpec::S| |00001750| 65 74 46 6f 6e 74 0d 2f | 2f 0d 2f 2f 09 53 65 74 |etFont./|/.//.Set| |00001760| 20 74 68 65 20 66 6f 6e | 74 20 6e 61 6d 65 64 2e | the fon|t named.| |00001770| 20 0d 2f 2f 09 52 65 74 | 75 72 6e 20 74 72 75 65 | .//.Ret|urn true| |00001780| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 77 61 73 | if the |font was| |00001790| 20 66 6f 75 6e 64 2c 20 | 66 61 6c 73 65 20 6f 74 | found, |false ot| |000017a0| 68 65 72 77 69 73 65 0d | 2f 2f 09 55 73 65 20 47 |herwise.|//.Use G| |000017b0| 65 74 46 6f 6e 74 20 74 | 6f 20 67 65 74 20 74 68 |etFont t|o get th| |000017c0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 6f |e name o|f the fo| |000017d0| 6e 74 20 74 68 61 74 20 | 77 61 73 20 73 75 62 73 |nt that |was subs| |000017e0| 74 69 74 75 74 65 64 0d | 2f 2f 0d 0d 42 6f 6f 6c |tituted.|//..Bool| |000017f0| 65 61 6e 20 43 46 6f 6e | 74 53 70 65 63 3a 3a 53 |ean CFon|tSpec::S| |00001800| 65 74 46 6f 6e 74 28 53 | 63 72 69 70 74 43 6f 64 |etFont(S|criptCod| |00001810| 65 20 73 63 72 69 70 74 | 43 6f 64 65 2c 0d 09 09 |e script|Code,...| |00001820| 09 09 09 09 20 20 20 43 | 6f 6e 73 74 53 74 72 32 |.... C|onstStr2| |00001830| 35 35 50 61 72 61 6d 20 | 66 6f 6e 74 4e 61 6d 65 |55Param |fontName| |00001840| 29 0d 7b 0d 09 73 68 6f | 72 74 20 66 6f 6e 74 3b |).{..sho|rt font;| |00001850| 0d 09 42 6f 6f 6c 65 61 | 6e 20 72 65 73 75 6c 74 |..Boolea|n result| |00001860| 20 3d 20 74 72 75 65 3b | 09 09 09 09 09 09 2f 2f | = true;|......//| |00001870| 20 41 73 73 75 6d 65 20 | 73 75 63 63 65 73 73 0d | Assume |success.| |00001880| 0d 09 3a 3a 47 65 74 46 | 4e 75 6d 28 66 6f 6e 74 |..::GetF|Num(font| |00001890| 4e 61 6d 65 2c 20 26 66 | 6f 6e 74 29 3b 0d 09 53 |Name, &f|ont);..S| |000018a0| 65 74 46 6f 6e 74 49 44 | 28 66 6f 6e 74 29 3b 0d |etFontID|(font);.| |000018b0| 0d 09 69 66 20 28 66 6f | 6e 74 20 3d 3d 20 30 29 |..if (fo|nt == 0)| |000018c0| 0d 09 7b 0d 09 09 2f 2f | 20 45 69 74 68 65 72 20 |..{...//| Either | |000018d0| 74 68 65 20 66 6f 6e 74 | 20 77 61 73 20 6e 6f 74 |the font| was not| |000018e0| 20 66 6f 75 6e 64 20 6f | 72 20 77 65 20 61 73 6b | found o|r we ask| |000018f0| 65 64 20 66 6f 72 20 74 | 68 65 20 0d 09 09 2f 2f |ed for t|he ...//| |00001900| 20 73 79 73 74 65 6d 20 | 66 6f 6e 74 0d 09 09 7b | system |font...{| |00001910| 0d 09 09 09 53 74 72 32 | 35 35 20 73 79 73 74 65 |....Str2|55 syste| |00001920| 6d 46 6f 6e 74 4e 61 6d | 65 3b 0d 0d 09 09 09 3a |mFontNam|e;.....:| |00001930| 3a 47 65 74 46 6f 6e 74 | 4e 61 6d 65 28 30 2c 20 |:GetFont|Name(0, | |00001940| 73 79 73 74 65 6d 46 6f | 6e 74 4e 61 6d 65 29 3b |systemFo|ntName);| |00001950| 0d 09 09 09 72 65 73 75 | 6c 74 20 3d 20 45 71 75 |....resu|lt = Equ| |00001960| 61 6c 53 74 72 69 6e 67 | 28 66 6f 6e 74 4e 61 6d |alString|(fontNam| |00001970| 65 2c 20 73 79 73 74 65 | 6d 46 6f 6e 74 4e 61 6d |e, syste|mFontNam| |00001980| 65 2c 20 66 61 6c 73 65 | 2c 20 66 61 6c 73 65 29 |e, false|, false)| |00001990| 3b 0d 09 09 7d 0d 09 09 | 69 66 20 28 72 65 73 75 |;...}...|if (resu| |000019a0| 6c 74 20 3d 3d 20 66 61 | 6c 73 65 29 0d 09 09 7b |lt == fa|lse)...{| |000019b0| 0d 09 09 09 2f 2f 20 57 | 65 20 64 69 64 6e 27 74 |....// W|e didn't| |000019c0| 20 61 73 6b 20 66 6f 72 | 20 74 68 65 20 73 79 73 | ask for| the sys| |000019d0| 74 65 6d 20 66 6f 6e 74 | 2c 20 69 2e 65 2e 0d 09 |tem font|, i.e...| |000019e0| 09 09 2f 2f 20 74 68 65 | 20 66 6f 6e 74 20 77 61 |..// the| font wa| |000019f0| 73 20 6e 6f 74 20 66 6f | 75 6e 64 2e 20 55 73 65 |s not fo|und. Use| |00001a00| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication| |00001a10| 20 66 6f 6e 74 20 66 6f | 72 20 74 68 65 20 72 65 | font fo|r the re| |00001a20| 71 75 65 73 74 65 64 20 | 73 63 72 69 70 74 0d 09 |quested |script..| |00001a30| 09 09 53 65 74 46 6f 6e | 74 28 73 63 72 69 70 74 |..SetFon|t(script| |00001a40| 43 6f 64 65 2c 20 6b 41 | 70 70 6c 69 63 61 74 69 |Code, kA|pplicati| |00001a50| 6f 6e 46 6f 6e 74 29 3b | 0d 09 09 09 2f 2f 20 3f |onFont);|....// ?| |00001a60| 3f 3f 20 57 65 20 63 6f | 75 6c 64 20 75 73 65 20 |?? We co|uld use | |00001a70| 61 20 6d 6f 72 65 20 65 | 6c 61 62 6f 72 61 74 65 |a more e|laborate| |00001a80| 20 73 75 62 73 74 69 74 | 75 74 69 6f 6e 20 73 74 | substit|ution st| |00001a90| 72 61 74 65 67 79 0d 09 | 09 7d 0d 09 7d 0d 0d 09 |rategy..|.}..}...| |00001aa0| 72 65 74 75 72 6e 20 72 | 65 73 75 6c 74 3b 0d 7d |return r|esult;.}| |00001ab0| 0d 0d 0d 2f 2f 0d 2f 2f | 09 43 46 6f 6e 74 53 70 |...//.//|.CFontSp| |00001ac0| 65 63 3a 3a 53 65 74 46 | 6f 6e 74 49 44 0d 2f 2f |ec::SetF|ontID.//| |00001ad0| 0d 2f 2f 0d 0d 76 6f 69 | 64 20 43 46 6f 6e 74 53 |.//..voi|d CFontS| |00001ae0| 70 65 63 3a 3a 53 65 74 | 46 6f 6e 74 49 44 28 73 |pec::Set|FontID(s| |00001af0| 68 6f 72 74 20 66 6f 6e | 74 29 0d 7b 0d 09 69 66 |hort fon|t).{..if| |00001b00| 20 28 66 46 6f 6e 74 20 | 21 3d 20 66 6f 6e 74 29 | (fFont |!= font)| |00001b10| 0d 09 7b 0d 09 09 66 46 | 6f 6e 74 20 3d 20 66 6f |..{...fF|ont = fo| |00001b20| 6e 74 3b 0d 09 09 66 53 | 63 72 69 70 74 20 3d 20 |nt;...fS|cript = | |00001b30| 46 6f 6e 74 54 6f 53 63 | 72 69 70 74 28 66 46 6f |FontToSc|ript(fFo| |00001b40| 6e 74 29 3b 0d 0d 09 09 | 66 4c 69 6e 65 48 65 69 |nt);....|fLineHei| |00001b50| 67 68 74 20 3d 20 30 3b | 09 09 09 09 09 09 2f 2f |ght = 0;|......//| |00001b60| 20 49 6e 76 61 6c 69 64 | 61 74 65 20 74 68 65 20 | Invalid|ate the | |00001b70| 66 6f 6e 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |font inf|ormation| |00001b80| 0d 09 7d 0d 7d 0d 0d 0d | 0d 2f 2f 0d 2f 2f 09 43 |..}.}...|.//.//.C| |00001b90| 46 6f 6e 74 53 70 65 63 | 3a 3a 53 65 74 53 69 7a |FontSpec|::SetSiz| |00001ba0| 65 0d 2f 2f 0d 2f 2f 0d | 0d 76 6f 69 64 20 43 46 |e.//.//.|.void CF| |00001bb0| 6f 6e 74 53 70 65 63 3a | 3a 53 65 74 53 69 7a 65 |ontSpec:|:SetSize| |00001bc0| 28 73 68 6f 72 74 20 73 | 69 7a 65 29 0d 7b 0d 09 |(short s|ize).{..| |00001bd0| 69 66 20 28 66 53 69 7a | 65 20 21 3d 20 73 69 7a |if (fSiz|e != siz| |00001be0| 65 29 0d 09 7b 0d 09 09 | 66 53 69 7a 65 20 3d 20 |e)..{...|fSize = | |00001bf0| 73 69 7a 65 3b 0d 0d 09 | 09 66 4c 69 6e 65 48 65 |size;...|.fLineHe| |00001c00| 69 67 68 74 20 3d 20 30 | 3b 09 09 09 09 09 09 2f |ight = 0|;....../| |00001c10| 2f 20 49 6e 76 61 6c 69 | 64 61 74 65 20 74 68 65 |/ Invali|date the| |00001c20| 20 66 6f 6e 74 20 69 6e | 66 6f 72 6d 61 74 69 6f | font in|formatio| |00001c30| 6e 0d 09 7d 0d 7d 0d 0d | 0d 0d 2f 2f 0d 2f 2f 09 |n..}.}..|..//.//.| |00001c40| 43 46 6f 6e 74 53 70 65 | 63 3a 3a 53 65 74 53 74 |CFontSpe|c::SetSt| |00001c50| 79 6c 65 0d 2f 2f 0d 2f | 2f 0d 0d 76 6f 69 64 20 |yle.//./|/..void | |00001c60| 43 46 6f 6e 74 53 70 65 | 63 3a 3a 53 65 74 53 74 |CFontSpe|c::SetSt| |00001c70| 79 6c 65 28 73 68 6f 72 | 74 20 73 74 79 6c 65 29 |yle(shor|t style)| |00001c80| 0d 7b 0d 09 69 66 20 28 | 66 53 74 79 6c 65 20 21 |.{..if (|fStyle !| |00001c90| 3d 20 73 74 79 6c 65 29 | 0d 09 7b 0d 09 09 2f 2f |= style)|..{...//| |00001ca0| 20 43 68 65 63 6b 20 69 | 74 27 73 20 61 20 76 61 | Check i|t's a va| |00001cb0| 6c 69 64 20 73 74 79 6c | 65 0d 09 09 61 73 73 65 |lid styl|e...asse| |00001cc0| 72 74 28 73 74 79 6c 65 | 20 3c 3d 20 31 32 38 29 |rt(style| <= 128)| |00001cd0| 3b 0d 09 09 61 73 73 65 | 72 74 28 28 73 74 79 6c |;...asse|rt((styl| |00001ce0| 65 20 26 20 3a 3a 47 65 | 74 53 63 72 69 70 74 56 |e & ::Ge|tScriptV| |00001cf0| 61 72 69 61 62 6c 65 28 | 66 53 63 72 69 70 74 2c |ariable(|fScript,| |00001d00| 20 73 6d 53 63 72 69 70 | 74 56 61 6c 69 64 53 74 | smScrip|tValidSt| |00001d10| 79 6c 65 73 29 29 20 3d | 3d 20 73 74 79 6c 65 29 |yles)) =|= style)| |00001d20| 3b 0d 0d 09 09 66 53 74 | 79 6c 65 20 3d 20 73 74 |;....fSt|yle = st| |00001d30| 79 6c 65 3b 0d 0d 09 09 | 66 4c 69 6e 65 48 65 69 |yle;....|fLineHei| |00001d40| 67 68 74 20 3d 20 30 3b | 09 09 09 09 09 09 2f 2f |ght = 0;|......//| |00001d50| 20 49 6e 76 61 6c 69 64 | 61 74 65 20 74 68 65 20 | Invalid|ate the | |00001d60| 66 6f 6e 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |font inf|ormation| |00001d70| 0d 09 7d 0d 7d 0d 0d 0d | 0d 2f 2f 0d 2f 2f 09 43 |..}.}...|.//.//.C| |00001d80| 46 6f 6e 74 53 70 65 63 | 3a 3a 53 65 74 4d 6f 64 |FontSpec|::SetMod| |00001d90| 65 0d 2f 2f 0d 2f 2f 0d | 0d 76 6f 69 64 20 43 46 |e.//.//.|.void CF| |00001da0| 6f 6e 74 53 70 65 63 3a | 3a 53 65 74 4d 6f 64 65 |ontSpec:|:SetMode| |00001db0| 28 73 68 6f 72 74 20 6d | 6f 64 65 29 0d 7b 0d 09 |(short m|ode).{..| |00001dc0| 2f 2f 20 57 68 65 6e 20 | 74 68 65 20 6d 6f 64 65 |// When |the mode| |00001dd0| 20 69 73 20 63 68 61 6e | 67 65 64 2c 20 69 74 20 | is chan|ged, it | |00001de0| 69 73 20 6e 6f 74 20 6e | 65 63 65 73 73 61 72 79 |is not n|ecessary| |00001df0| 20 74 6f 20 69 6e 76 61 | 6c 69 64 61 74 65 20 74 | to inva|lidate t| |00001e00| 68 65 20 66 6f 6e 74 20 | 69 6e 66 6f 72 6d 61 74 |he font |informat| |00001e10| 69 6f 6e 0d 09 66 4d 6f | 64 65 20 3d 20 6d 6f 64 |ion..fMo|de = mod| |00001e20| 65 3b 0d 7d 0d 0d 0d 0d | 2f 2f 0d 2f 2f 09 43 46 |e;.}....|//.//.CF| |00001e30| 6f 6e 74 53 70 65 63 3a | 3a 47 65 74 46 6f 6e 74 |ontSpec:|:GetFont| |00001e40| 4d 65 74 72 69 63 73 0d | 2f 2f 0d 2f 2f 0d 0d 76 |Metrics.|//.//..v| |00001e50| 6f 69 64 20 43 46 6f 6e | 74 53 70 65 63 3a 3a 47 |oid CFon|tSpec::G| |00001e60| 65 74 46 6f 6e 74 4d 65 | 74 72 69 63 73 28 73 68 |etFontMe|trics(sh| |00001e70| 6f 72 74 26 20 6c 69 6e | 65 48 65 69 67 68 74 2c |ort& lin|eHeight,| |00001e80| 0d 09 09 09 09 09 09 09 | 73 68 6f 72 74 26 20 61 |........|short& a| |00001e90| 73 63 65 6e 74 2c 0d 09 | 09 09 09 09 09 09 73 68 |scent,..|......sh| |00001ea0| 6f 72 74 26 20 64 65 73 | 63 65 6e 74 29 0d 7b 0d |ort& des|cent).{.| |00001eb0| 09 2f 2f 20 49 66 20 74 | 68 65 20 66 6f 6e 74 20 |.// If t|he font | |00001ec0| 69 6e 66 6f 20 69 73 20 | 6e 6f 74 20 75 70 20 74 |info is |not up t| |00001ed0| 6f 20 64 61 74 65 2e 2e | 2e 0d 09 69 66 20 28 66 |o date..|...if (f| |00001ee0| 4c 69 6e 65 48 65 69 67 | 68 74 20 3d 3d 20 30 29 |LineHeig|ht == 0)| |00001ef0| 09 09 09 09 09 09 0d 09 | 7b 0d 09 09 2f 2f 20 2e |........|{...// .| |00001f00| 2e 2e 20 72 65 63 61 6c | 63 20 69 74 0d 09 09 43 |.. recal|c it...C| |00001f10| 46 6f 6e 74 53 70 65 63 | 20 73 61 76 65 46 6f 6e |FontSpec| saveFon| |00001f20| 74 3b 0d 09 09 73 61 76 | 65 46 6f 6e 74 2e 53 61 |t;...sav|eFont.Sa| |00001f30| 76 65 28 29 3b 0d 09 09 | 46 6f 6e 74 49 6e 66 6f |ve();...|FontInfo| |00001f40| 20 66 69 3b 0d 09 09 55 | 73 65 28 29 3b 09 09 09 | fi;...U|se();...| |00001f50| 09 09 09 09 09 09 2f 2f | 20 53 65 74 20 74 68 65 |......//| Set the| |00001f60| 20 70 6f 72 74 20 74 6f | 20 75 73 65 20 74 68 65 | port to| use the| |00001f70| 20 66 6f 6e 74 20 69 6e | 66 6f 0d 09 09 3a 3a 47 | font in|fo...::G| |00001f80| 65 74 46 6f 6e 74 49 6e | 66 6f 28 26 66 69 29 3b |etFontIn|fo(&fi);| |00001f90| 09 09 09 09 09 09 2f 2f | 20 47 65 74 20 74 68 65 |......//| Get the| |00001fa0| 20 66 6f 6e 74 20 6d 65 | 74 72 69 63 73 0d 09 09 | font me|trics...| |00001fb0| 73 61 76 65 46 6f 6e 74 | 2e 52 65 73 74 6f 72 65 |saveFont|.Restore| |00001fc0| 28 29 3b 0d 09 09 66 41 | 73 63 65 6e 74 20 3d 20 |();...fA|scent = | |00001fd0| 66 69 2e 61 73 63 65 6e | 74 3b 0d 09 09 66 44 65 |fi.ascen|t;...fDe| |00001fe0| 73 63 65 6e 74 20 3d 20 | 66 69 2e 64 65 73 63 65 |scent = |fi.desce| |00001ff0| 6e 74 3b 0d 09 09 66 4c | 69 6e 65 48 65 69 67 68 |nt;...fL|ineHeigh| |00002000| 74 20 3d 20 66 69 2e 61 | 73 63 65 6e 74 20 2b 20 |t = fi.a|scent + | |00002010| 66 69 2e 64 65 73 63 65 | 6e 74 20 2b 20 66 69 2e |fi.desce|nt + fi.| |00002020| 6c 65 61 64 69 6e 67 3b | 0d 0d 09 09 61 73 73 65 |leading;|....asse| |00002030| 72 74 28 66 4c 69 6e 65 | 48 65 69 67 68 74 20 21 |rt(fLine|Height !| |00002040| 3d 20 30 29 3b 0d 09 7d | 0d 0d 09 2f 2f 20 52 65 |= 0);..}|...// Re| |00002050| 74 75 72 6e 20 74 68 65 | 20 76 61 6c 75 65 73 20 |turn the| values | |00002060| 6e 6f 77 20 73 74 6f 72 | 65 64 20 69 6e 20 74 68 |now stor|ed in th| |00002070| 65 20 63 61 63 68 65 0d | 09 6c 69 6e 65 48 65 69 |e cache.|.lineHei| |00002080| 67 68 74 20 3d 20 66 4c | 69 6e 65 48 65 69 67 68 |ght = fL|ineHeigh| |00002090| 74 3b 0d 09 61 73 63 65 | 6e 74 20 3d 20 66 41 73 |t;..asce|nt = fAs| |000020a0| 63 65 6e 74 3b 0d 09 64 | 65 73 63 65 6e 74 20 3d |cent;..d|escent =| |000020b0| 20 66 44 65 73 63 65 6e | 74 3b 0d 7d 0d 0d 0d 0d | fDescen|t;.}....| |000020c0| 2f 2f 0d 2f 2f 09 43 46 | 6f 6e 74 53 70 65 63 3a |//.//.CF|ontSpec:| |000020d0| 3a 54 72 75 6e 63 53 74 | 72 69 6e 67 0d 2f 2f 0d |:TruncSt|ring.//.| |000020e0| 2f 2f 0d 0d 76 6f 69 64 | 20 43 46 6f 6e 74 53 70 |//..void| CFontSp| |000020f0| 65 63 3a 3a 54 72 75 6e | 63 53 74 72 69 6e 67 28 |ec::Trun|cString(| |00002100| 73 68 6f 72 74 20 77 69 | 64 74 68 2c 0d 09 09 09 |short wi|dth,....| |00002110| 09 09 09 09 53 74 72 32 | 35 35 20 73 74 72 69 6e |....Str2|55 strin| |00002120| 67 2c 0d 09 09 09 09 09 | 09 09 54 72 75 6e 63 43 |g,......|..TruncC| |00002130| 6f 64 65 20 77 68 65 72 | 65 29 0d 7b 0d 09 42 6f |ode wher|e).{..Bo| |00002140| 6f 6c 65 61 6e 20 73 75 | 70 70 6f 72 74 43 6f 6e |olean su|pportCon| |00002150| 64 65 6e 73 65 3b 0d 09 | 61 73 73 65 72 74 28 77 |dense;..|assert(w| |00002160| 69 64 74 68 20 3e 20 30 | 29 3b 0d 0d 09 73 75 70 |idth > 0|);...sup| |00002170| 70 6f 72 74 43 6f 6e 64 | 65 6e 73 65 20 3d 20 53 |portCond|ense = S| |00002180| 75 70 70 6f 72 74 43 6f | 6e 64 65 6e 73 65 28 47 |upportCo|ndense(G| |00002190| 65 74 53 63 72 69 70 74 | 43 6f 64 65 28 29 29 3b |etScript|Code());| |000021a0| 0d 0d 09 2f 2f 20 69 66 | 20 73 63 72 69 70 74 20 |...// if| script | |000021b0| 73 75 70 70 6f 72 74 73 | 20 63 6f 6e 64 65 6e 73 |supports| condens| |000021c0| 65 64 20 73 74 79 6c 65 | 2c 20 63 6c 65 61 72 20 |ed style|, clear | |000021d0| 69 74 0d 09 69 66 20 28 | 73 75 70 70 6f 72 74 43 |it..if (|supportC| |000021e0| 6f 6e 64 65 6e 73 65 29 | 0d 09 09 53 65 74 53 74 |ondense)|...SetSt| |000021f0| 79 6c 65 28 47 65 74 53 | 74 79 6c 65 28 29 20 26 |yle(GetS|tyle() &| |00002200| 20 7e 63 6f 6e 64 65 6e | 73 65 29 3b 0d 0d 09 43 | ~conden|se);...C| |00002210| 46 6f 6e 74 53 70 65 63 | 20 73 61 76 65 46 6f 6e |FontSpec| saveFon| |00002220| 74 3b 0d 09 73 61 76 65 | 46 6f 6e 74 2e 53 61 76 |t;..save|Font.Sav| |00002230| 65 28 29 3b 0d 09 55 73 | 65 28 29 3b 0d 09 69 66 |e();..Us|e();..if| |00002240| 20 28 53 74 72 69 6e 67 | 57 69 64 74 68 28 73 74 | (String|Width(st| |00002250| 72 69 6e 67 29 20 3e 20 | 77 69 64 74 68 29 0d 09 |ring) > |width)..| |00002260| 7b 0d 09 09 2f 2f 20 49 | 66 20 73 63 72 69 70 74 |{...// I|f script| |00002270| 20 73 75 70 70 6f 72 74 | 73 20 63 6f 6e 64 65 6e | support|s conden| |00002280| 73 65 64 20 73 74 79 6c | 65 2c 20 75 73 65 20 69 |sed styl|e, use i| |00002290| 74 0d 09 09 69 66 20 28 | 73 75 70 70 6f 72 74 43 |t...if (|supportC| |000022a0| 6f 6e 64 65 6e 73 65 29 | 0d 09 09 7b 0d 09 09 09 |ondense)|...{....| |000022b0| 53 65 74 53 74 79 6c 65 | 28 47 65 74 53 74 79 6c |SetStyle|(GetStyl| |000022c0| 65 28 29 20 7c 20 63 6f | 6e 64 65 6e 73 65 29 3b |e() | co|ndense);| |000022d0| 0d 09 09 09 55 73 65 28 | 29 3b 0d 0d 09 09 09 2f |....Use(|);...../| |000022e0| 2f 20 49 66 20 66 61 69 | 6c 65 64 20 74 6f 20 63 |/ If fai|led to c| |000022f0| 6f 6e 64 65 6e 73 65 20 | 65 6e 6f 75 67 68 2c 20 |ondense |enough, | |00002300| 74 72 75 6e 63 61 74 65 | 0d 09 09 09 69 66 20 28 |truncate|....if (| |00002310| 53 74 72 69 6e 67 57 69 | 64 74 68 28 73 74 72 69 |StringWi|dth(stri| |00002320| 6e 67 29 20 3e 20 77 69 | 64 74 68 29 0d 09 09 09 |ng) > wi|dth)....| |00002330| 09 3a 3a 54 72 75 6e 63 | 53 74 72 69 6e 67 28 77 |.::Trunc|String(w| |00002340| 69 64 74 68 2c 20 73 74 | 72 69 6e 67 2c 20 77 68 |idth, st|ring, wh| |00002350| 65 72 65 29 3b 0d 09 09 | 7d 0d 09 09 65 6c 73 65 |ere);...|}...else| |00002360| 0d 09 09 7b 0d 09 09 09 | 3a 3a 54 72 75 6e 63 53 |...{....|::TruncS| |00002370| 74 72 69 6e 67 28 77 69 | 64 74 68 2c 20 73 74 72 |tring(wi|dth, str| |00002380| 69 6e 67 2c 20 77 68 65 | 72 65 29 3b 0d 09 09 7d |ing, whe|re);...}| |00002390| 0d 09 7d 0d 09 73 61 76 | 65 46 6f 6e 74 2e 52 65 |..}..sav|eFont.Re| |000023a0| 73 74 6f 72 65 28 29 3b | 0d 7d 0d 0d 0d 0d 2f 2f |store();|.}....//| |000023b0| 0d 2f 2f 09 43 46 6f 6e | 74 53 70 65 63 3a 3a 4d |.//.CFon|tSpec::M| |000023c0| 65 61 73 75 72 65 53 74 | 72 69 6e 67 0d 2f 2f 0d |easureSt|ring.//.| |000023d0| 2f 2f 0d 0d 73 68 6f 72 | 74 20 43 46 6f 6e 74 53 |//..shor|t CFontS| |000023e0| 70 65 63 3a 3a 4d 65 61 | 73 75 72 65 53 74 72 69 |pec::Mea|sureStri| |000023f0| 6e 67 28 43 6f 6e 73 74 | 53 74 72 32 35 35 50 61 |ng(Const|Str255Pa| |00002400| 72 61 6d 20 73 74 72 69 | 6e 67 29 20 63 6f 6e 73 |ram stri|ng) cons| |00002410| 74 0d 7b 0d 09 43 46 6f | 6e 74 53 70 65 63 20 73 |t.{..CFo|ntSpec s| |00002420| 61 76 65 46 6f 6e 74 3b | 0d 09 73 61 76 65 46 6f |aveFont;|..saveFo| |00002430| 6e 74 2e 53 61 76 65 28 | 29 3b 0d 09 55 73 65 28 |nt.Save(|);..Use(| |00002440| 29 3b 0d 09 73 68 6f 72 | 74 20 77 69 64 74 68 20 |);..shor|t width | |00002450| 3d 20 53 74 72 69 6e 67 | 57 69 64 74 68 28 73 74 |= String|Width(st| |00002460| 72 69 6e 67 29 3b 0d 09 | 73 61 76 65 46 6f 6e 74 |ring);..|saveFont| |00002470| 2e 52 65 73 74 6f 72 65 | 28 29 3b 0d 09 72 65 74 |.Restore|();..ret| |00002480| 75 72 6e 20 77 69 64 74 | 68 3b 0d 7d 0d 0d 0d 0d |urn widt|h;.}....| |00002490| 2f 2f 0d 2f 2f 09 43 46 | 6f 6e 74 53 70 65 63 3a |//.//.CF|ontSpec:| |000024a0| 3a 44 72 61 77 53 74 72 | 69 6e 67 0d 2f 2f 0d 2f |:DrawStr|ing.//./| |000024b0| 2f 0d 0d 76 6f 69 64 20 | 43 46 6f 6e 74 53 70 65 |/..void |CFontSpe| |000024c0| 63 3a 3a 44 72 61 77 53 | 74 72 69 6e 67 28 43 6f |c::DrawS|tring(Co| |000024d0| 6e 73 74 53 74 72 32 35 | 35 50 61 72 61 6d 20 73 |nstStr25|5Param s| |000024e0| 74 72 69 6e 67 29 20 63 | 6f 6e 73 74 0d 7b 0d 09 |tring) c|onst.{..| |000024f0| 43 46 6f 6e 74 53 70 65 | 63 20 73 61 76 65 46 6f |CFontSpe|c saveFo| |00002500| 6e 74 3b 0d 09 73 61 76 | 65 46 6f 6e 74 2e 53 61 |nt;..sav|eFont.Sa| |00002510| 76 65 28 29 3b 0d 09 55 | 73 65 28 29 3b 0d 09 3a |ve();..U|se();..:| |00002520| 3a 44 72 61 77 53 74 72 | 69 6e 67 28 73 74 72 69 |:DrawStr|ing(stri| |00002530| 6e 67 29 3b 0d 09 73 61 | 76 65 46 6f 6e 74 2e 52 |ng);..sa|veFont.R| |00002540| 65 73 74 6f 72 65 28 29 | 3b 0d 7d 0d 0d 0d 2f 2f |estore()|;.}...//| |00002550| 0d 2f 2f 09 43 46 6f 6e | 74 53 70 65 63 3a 3a 44 |.//.CFon|tSpec::D| |00002560| 72 61 77 54 65 78 74 0d | 2f 2f 0d 2f 2f 0d 0d 76 |rawText.|//.//..v| |00002570| 6f 69 64 20 43 46 6f 6e | 74 53 70 65 63 3a 3a 44 |oid CFon|tSpec::D| |00002580| 72 61 77 54 65 78 74 28 | 43 6f 6e 73 74 53 74 72 |rawText(|ConstStr| |00002590| 32 35 35 50 61 72 61 6d | 20 73 74 72 69 6e 67 2c |255Param| string,| |000025a0| 0d 09 09 09 09 09 09 20 | 63 6f 6e 73 74 20 43 52 |....... |const CR| |000025b0| 65 63 74 26 20 62 6f 75 | 6e 64 73 2c 0d 09 09 09 |ect& bou|nds,....| |000025c0| 09 09 09 20 73 68 6f 72 | 74 20 61 6c 69 67 6e 29 |... shor|t align)| |000025d0| 20 63 6f 6e 73 74 0d 7b | 0d 09 69 66 20 28 73 74 | const.{|..if (st| |000025e0| 72 69 6e 67 20 3d 3d 20 | 4e 55 4c 4c 20 7c 7c 20 |ring == |NULL || | |000025f0| 73 74 72 69 6e 67 5b 30 | 5d 20 3d 3d 20 30 29 20 |string[0|] == 0) | |00002600| 72 65 74 75 72 6e 3b 0d | 09 0d 09 43 46 6f 6e 74 |return;.|...CFont| |00002610| 53 70 65 63 20 73 61 76 | 65 46 6f 6e 74 3b 0d 09 |Spec sav|eFont;..| |00002620| 73 61 76 65 46 6f 6e 74 | 2e 53 61 76 65 28 29 3b |saveFont|.Save();| |00002630| 0d 09 55 73 65 28 29 3b | 0d 09 73 68 6f 72 74 20 |..Use();|..short | |00002640| 65 6e 64 59 3b 0d 09 73 | 68 6f 72 74 20 6c 68 55 |endY;..s|hort lhU| |00002650| 73 65 64 3b 0d 09 28 76 | 6f 69 64 29 4e 65 6f 54 |sed;..(v|oid)NeoT| |00002660| 65 78 74 42 6f 78 28 26 | 73 74 72 69 6e 67 5b 31 |extBox(&|string[1| |00002670| 5d 2c 20 73 74 72 69 6e | 67 5b 30 5d 2c 20 62 6f |], strin|g[0], bo| |00002680| 75 6e 64 73 2c 20 61 6c | 69 67 6e 2c 20 2d 31 2c |unds, al|ign, -1,| |00002690| 20 26 65 6e 64 59 2c 20 | 26 6c 68 55 73 65 64 29 | &endY, |&lhUsed)| |000026a0| 3b 0d 09 73 61 76 65 46 | 6f 6e 74 2e 52 65 73 74 |;..saveF|ont.Rest| |000026b0| 6f 72 65 28 29 3b 0d 7d | 0d 0d 0d 0d 2f 2f 0d 2f |ore();.}|....//./| |000026c0| 2f 09 43 46 6f 6e 74 53 | 70 65 63 3a 3a 54 45 4e |/.CFontS|pec::TEN| |000026d0| 65 77 0d 2f 2f 0d 2f 2f | 0d 0d 54 45 48 61 6e 64 |ew.//.//|..TEHand| |000026e0| 6c 65 20 43 46 6f 6e 74 | 53 70 65 63 3a 3a 54 45 |le CFont|Spec::TE| |000026f0| 4e 65 77 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 0d |New(void|) const.| |00002700| 7b 0d 09 43 46 6f 6e 74 | 53 70 65 63 20 73 61 76 |{..CFont|Spec sav| |00002710| 65 46 6f 6e 74 3b 0d 09 | 73 61 76 65 46 6f 6e 74 |eFont;..|saveFont| |00002720| 2e 53 61 76 65 28 29 3b | 0d 09 55 73 65 28 29 3b |.Save();|..Use();| |00002730| 0d 09 52 65 63 74 20 72 | 3b 0d 09 53 65 74 52 65 |..Rect r|;..SetRe| |00002740| 63 74 28 26 72 2c 20 30 | 2c 20 30 2c 20 30 2c 20 |ct(&r, 0|, 0, 0, | |00002750| 30 29 3b 0d 09 54 45 48 | 61 6e 64 6c 65 20 74 65 |0);..TEH|andle te| |00002760| 78 74 20 3d 20 3a 3a 54 | 45 4e 65 77 28 26 72 2c |xt = ::T|ENew(&r,| |00002770| 20 26 72 29 3b 0d 09 69 | 66 20 28 49 73 4c 65 66 | &r);..i|f (IsLef| |00002780| 74 54 6f 52 69 67 68 74 | 28 29 29 0d 09 09 54 45 |tToRight|())...TE| |00002790| 53 65 74 41 6c 69 67 6e | 6d 65 6e 74 28 74 65 46 |SetAlign|ment(teF| |000027a0| 6c 75 73 68 4c 65 66 74 | 2c 20 74 65 78 74 29 3b |lushLeft|, text);| |000027b0| 0d 09 65 6c 73 65 0d 09 | 09 54 45 53 65 74 41 6c |..else..|.TESetAl| |000027c0| 69 67 6e 6d 65 6e 74 28 | 74 65 46 6c 75 73 68 52 |ignment(|teFlushR| |000027d0| 69 67 68 74 2c 20 74 65 | 78 74 29 3b 0d 09 73 61 |ight, te|xt);..sa| |000027e0| 76 65 46 6f 6e 74 2e 52 | 65 73 74 6f 72 65 28 29 |veFont.R|estore()| |000027f0| 3b 0d 09 72 65 74 75 72 | 6e 20 74 65 78 74 3b 0d |;..retur|n text;.| |00002800| 7d 0d 0d 0d 0d 2f 2f 0d | 2f 2f 09 43 46 6f 6e 74 |}....//.|//.CFont| |00002810| 53 70 65 63 3a 3a 55 73 | 65 0d 2f 2f 0d 2f 2f 09 |Spec::Us|e.//.//.| |00002820| 53 65 74 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |Set the |current | |00002830| 70 6f 72 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |port inf|ormation| |00002840| 20 74 6f 20 6d 61 74 63 | 68 20 74 68 65 20 6f 6e | to matc|h the on| |00002850| 65 73 20 64 65 66 69 6e | 65 64 0d 2f 2f 09 69 6e |es defin|ed.//.in| |00002860| 20 74 68 65 20 6f 62 6a | 65 63 74 2e 20 49 66 20 | the obj|ect. If | |00002870| 74 68 65 79 20 61 72 65 | 20 61 6c 72 65 61 64 79 |they are| already| |00002880| 20 6d 61 74 63 68 69 6e | 67 2c 20 6e 6f 20 63 61 | matchin|g, no ca| |00002890| 6c 6c 20 74 6f 20 74 68 | 65 0d 2f 2f 09 54 6f 6f |ll to th|e.//.Too| |000028a0| 6c 62 6f 78 20 69 73 20 | 6d 61 64 65 0d 2f 2f 0d |lbox is |made.//.| |000028b0| 2f 2f 0d 0d 76 6f 69 64 | 20 43 46 6f 6e 74 53 70 |//..void| CFontSp| |000028c0| 65 63 3a 3a 55 73 65 28 | 29 20 63 6f 6e 73 74 0d |ec::Use(|) const.| |000028d0| 7b 0d 09 61 73 73 65 72 | 74 28 66 53 63 72 69 70 |{..asser|t(fScrip| |000028e0| 74 20 21 3d 20 73 6d 4e | 6f 53 63 72 69 70 74 29 |t != smN|oScript)| |000028f0| 3b 0d 09 0d 09 47 72 61 | 66 50 74 72 20 63 75 72 |;....Gra|fPtr cur| |00002900| 50 6f 72 74 3b 0d 09 47 | 65 74 50 6f 72 74 28 26 |Port;..G|etPort(&| |00002910| 63 75 72 50 6f 72 74 29 | 3b 0d 0d 09 2f 2f 20 4d |curPort)|;...// M| |00002920| 75 73 74 20 73 65 74 20 | 74 68 65 20 66 6f 6e 74 |ust set |the font| |00002930| 20 66 69 72 73 74 2c 20 | 62 65 63 61 75 73 65 20 | first, |because | |00002940| 69 66 20 73 69 7a 65 20 | 3d 20 30 2c 20 0d 09 2f |if size |= 0, ../| |00002950| 2f 20 69 74 27 73 20 64 | 65 70 65 6e 64 69 6e 67 |/ it's d|epending| |00002960| 20 6f 6e 20 74 68 65 20 | 73 63 72 69 70 74 20 6f | on the |script o| |00002970| 66 20 74 68 65 20 66 6f | 6e 74 0d 0d 09 69 66 20 |f the fo|nt...if | |00002980| 28 63 75 72 50 6f 72 74 | 2d 3e 74 78 46 6f 6e 74 |(curPort|->txFont| |00002990| 20 21 3d 20 66 46 6f 6e | 74 29 0d 09 09 54 65 78 | != fFon|t)...Tex| |000029a0| 74 46 6f 6e 74 28 66 46 | 6f 6e 74 29 3b 0d 0d 09 |tFont(fF|ont);...| |000029b0| 69 66 20 28 63 75 72 50 | 6f 72 74 2d 3e 74 78 53 |if (curP|ort->txS| |000029c0| 69 7a 65 20 21 3d 20 66 | 53 69 7a 65 29 0d 09 09 |ize != f|Size)...| |000029d0| 54 65 78 74 53 69 7a 65 | 28 66 53 69 7a 65 29 3b |TextSize|(fSize);| |000029e0| 0d 0d 09 69 66 20 28 63 | 75 72 50 6f 72 74 2d 3e |...if (c|urPort->| |000029f0| 74 78 46 61 63 65 20 21 | 3d 20 66 53 74 79 6c 65 |txFace !|= fStyle| |00002a00| 29 0d 09 09 54 65 78 74 | 46 61 63 65 28 66 53 74 |)...Text|Face(fSt| |00002a10| 79 6c 65 29 3b 0d 0d 09 | 69 66 20 28 63 75 72 50 |yle);...|if (curP| |00002a20| 6f 72 74 2d 3e 74 78 4d | 6f 64 65 20 21 3d 20 66 |ort->txM|ode != f| |00002a30| 4d 6f 64 65 29 0d 09 09 | 54 65 78 74 4d 6f 64 65 |Mode)...|TextMode| |00002a40| 28 66 4d 6f 64 65 29 3b | 0d 7d 0d 0d 0d 0d 76 6f |(fMode);|.}....vo| |00002a50| 69 64 20 43 46 6f 6e 74 | 53 70 65 63 3a 3a 53 65 |id CFont|Spec::Se| |00002a60| 74 50 6f 72 74 46 6f 6e | 74 28 47 72 61 66 50 74 |tPortFon|t(GrafPt| |00002a70| 72 20 70 6f 72 74 29 20 | 63 6f 6e 73 74 0d 7b 0d |r port) |const.{.| |00002a80| 09 47 72 61 66 50 74 72 | 20 73 61 76 65 50 6f 72 |.GrafPtr| savePor| |00002a90| 74 3b 0d 09 0d 09 2f 2f | 20 53 61 76 65 20 74 68 |t;....//| Save th| |00002aa0| 65 20 63 75 72 72 65 6e | 74 20 70 6f 72 74 0d 09 |e curren|t port..| |00002ab0| 3a 3a 47 65 74 50 6f 72 | 74 28 26 73 61 76 65 50 |::GetPor|t(&saveP| |00002ac0| 6f 72 74 29 3b 0d 09 0d | 09 3a 3a 53 65 74 50 6f |ort);...|.::SetPo| |00002ad0| 72 74 28 70 6f 72 74 29 | 3b 0d 0d 09 2f 2f 20 4d |rt(port)|;...// M| |00002ae0| 75 73 74 20 73 65 74 20 | 74 68 65 20 66 6f 6e 74 |ust set |the font| |00002af0| 20 66 69 72 73 74 2c 20 | 62 65 63 61 75 73 65 20 | first, |because | |00002b00| 69 66 20 73 69 7a 65 20 | 3d 3d 20 30 2c 20 0d 09 |if size |== 0, ..| |00002b10| 2f 2f 20 69 74 27 73 20 | 64 65 70 65 6e 64 69 6e |// it's |dependin| |00002b20| 67 20 6f 6e 20 74 68 65 | 20 73 63 72 69 70 74 20 |g on the| script | |00002b30| 6f 66 20 74 68 65 20 66 | 6f 6e 74 0d 0d 09 69 66 |of the f|ont...if| |00002b40| 20 28 70 6f 72 74 2d 3e | 74 78 46 6f 6e 74 20 21 | (port->|txFont !| |00002b50| 3d 20 66 46 6f 6e 74 29 | 0d 09 09 3a 3a 54 65 78 |= fFont)|...::Tex| |00002b60| 74 46 6f 6e 74 28 66 46 | 6f 6e 74 29 3b 0d 0d 09 |tFont(fF|ont);...| |00002b70| 69 66 20 28 70 6f 72 74 | 2d 3e 74 78 53 69 7a 65 |if (port|->txSize| |00002b80| 20 21 3d 20 66 53 69 7a | 65 29 0d 09 09 3a 3a 54 | != fSiz|e)...::T| |00002b90| 65 78 74 53 69 7a 65 28 | 66 53 69 7a 65 29 3b 0d |extSize(|fSize);.| |00002ba0| 0d 09 69 66 20 28 70 6f | 72 74 2d 3e 74 78 46 61 |..if (po|rt->txFa| |00002bb0| 63 65 20 21 3d 20 66 53 | 74 79 6c 65 29 0d 09 09 |ce != fS|tyle)...| |00002bc0| 3a 3a 54 65 78 74 46 61 | 63 65 28 66 53 74 79 6c |::TextFa|ce(fStyl| |00002bd0| 65 29 3b 0d 0d 09 69 66 | 20 28 70 6f 72 74 2d 3e |e);...if| (port->| |00002be0| 74 78 4d 6f 64 65 20 21 | 3d 20 66 4d 6f 64 65 29 |txMode !|= fMode)| |00002bf0| 0d 09 09 3a 3a 54 65 78 | 74 4d 6f 64 65 28 66 4d |...::Tex|tMode(fM| |00002c00| 6f 64 65 29 3b 0d 09 0d | 09 2f 2f 20 52 65 73 74 |ode);...|.// Rest| |00002c10| 6f 72 65 20 74 68 65 20 | 70 6f 72 74 0d 09 3a 3a |ore the |port..::| |00002c20| 53 65 74 50 6f 72 74 28 | 73 61 76 65 50 6f 72 74 |SetPort(|savePort| |00002c30| 29 3b 0d 7d 0d 0d 63 6f | 6e 73 74 20 43 46 6f 6e |);.}..co|nst CFon| |00002c40| 74 53 70 65 63 20 26 43 | 46 6f 6e 74 53 70 65 63 |tSpec &C|FontSpec| |00002c50| 3a 3a 47 65 74 53 79 73 | 74 65 6d 46 6f 6e 74 53 |::GetSys|temFontS| |00002c60| 70 65 63 28 76 6f 69 64 | 29 0d 7b 0d 09 69 66 20 |pec(void|).{..if | |00002c70| 28 21 70 53 79 73 74 65 | 6d 46 6f 6e 74 49 6e 69 |(!pSyste|mFontIni| |00002c80| 74 65 64 29 0d 09 7b 0d | 09 09 70 53 79 73 74 65 |ted)..{.|..pSyste| |00002c90| 6d 46 6f 6e 74 53 70 65 | 63 2e 53 65 74 46 6f 6e |mFontSpe|c.SetFon| |00002ca0| 74 28 73 6d 53 79 73 74 | 65 6d 53 63 72 69 70 74 |t(smSyst|emScript| |00002cb0| 2c 20 6b 53 79 73 74 65 | 6d 46 6f 6e 74 29 3b 0d |, kSyste|mFont);.| |00002cc0| 09 09 70 53 79 73 74 65 | 6d 46 6f 6e 74 49 6e 69 |..pSyste|mFontIni| |00002cd0| 74 65 64 20 3d 20 74 72 | 75 65 3b 0d 09 7d 0d 09 |ted = tr|ue;..}..| |00002ce0| 72 65 74 75 72 6e 20 70 | 53 79 73 74 65 6d 46 6f |return p|SystemFo| |00002cf0| 6e 74 53 70 65 63 3b 0d | 7d 0d 0d 0d 63 6f 6e 73 |ntSpec;.|}...cons| |00002d00| 74 20 43 46 6f 6e 74 53 | 70 65 63 20 26 43 46 6f |t CFontS|pec &CFo| |00002d10| 6e 74 53 70 65 63 3a 3a | 47 65 74 53 6d 61 6c 6c |ntSpec::|GetSmall| |00002d20| 46 6f 6e 74 53 70 65 63 | 28 76 6f 69 64 29 0d 7b |FontSpec|(void).{| |00002d30| 0d 09 69 66 20 28 21 70 | 53 6d 61 6c 6c 46 6f 6e |..if (!p|SmallFon| |00002d40| 74 49 6e 69 74 65 64 29 | 0d 09 7b 0d 09 09 70 53 |tInited)|..{...pS| |00002d50| 6d 61 6c 6c 46 6f 6e 74 | 53 70 65 63 2e 53 65 74 |mallFont|Spec.Set| |00002d60| 46 6f 6e 74 28 73 6d 53 | 79 73 74 65 6d 53 63 72 |Font(smS|ystemScr| |00002d70| 69 70 74 2c 20 6b 53 6d | 61 6c 6c 46 6f 6e 74 29 |ipt, kSm|allFont)| |00002d80| 3b 0d 09 09 70 53 6d 61 | 6c 6c 46 6f 6e 74 49 6e |;...pSma|llFontIn| |00002d90| 69 74 65 64 20 3d 20 74 | 72 75 65 3b 0d 09 7d 0d |ited = t|rue;..}.| |00002da0| 09 72 65 74 75 72 6e 20 | 70 53 6d 61 6c 6c 46 6f |.return |pSmallFo| |00002db0| 6e 74 53 70 65 63 3b 0d | 7d 0d 0d 0d 48 61 6e 64 |ntSpec;.|}...Hand| |00002dc0| 6c 65 20 43 46 6f 6e 74 | 53 70 65 63 3a 3a 47 65 |le CFont|Spec::Ge| |00002dd0| 74 49 6e 74 6c 52 65 73 | 6f 75 72 63 65 28 73 68 |tIntlRes|ource(sh| |00002de0| 6f 72 74 20 69 64 29 0d | 7b 0d 09 48 61 6e 64 6c |ort id).|{..Handl| |00002df0| 65 20 68 20 3d 20 4e 55 | 4c 4c 3b 0d 09 69 66 20 |e h = NU|LL;..if | |00002e00| 28 69 64 20 3d 3d 20 30 | 29 0d 09 7b 0d 09 09 69 |(id == 0|)..{...i| |00002e10| 66 20 28 70 49 74 6c 30 | 20 3d 3d 20 4e 55 4c 4c |f (pItl0| == NULL| |00002e20| 29 0d 09 09 7b 0d 09 09 | 09 68 20 3d 20 46 65 74 |)...{...|.h = Fet| |00002e30| 63 68 49 6e 74 6c 52 65 | 73 6f 75 72 63 65 28 69 |chIntlRe|source(i| |00002e40| 64 29 3b 0d 09 09 09 61 | 73 73 65 72 74 28 68 20 |d);....a|ssert(h | |00002e50| 21 3d 20 4e 55 4c 4c 29 | 3b 0d 09 09 09 48 61 6e |!= NULL)|;....Han| |00002e60| 64 54 6f 48 61 6e 64 28 | 26 68 29 3b 0d 09 09 09 |dToHand(|&h);....| |00002e70| 48 4e 6f 50 75 72 67 65 | 28 68 29 3b 0d 09 09 09 |HNoPurge|(h);....| |00002e80| 70 49 74 6c 30 20 3d 20 | 68 3b 0d 09 09 7d 0d 09 |pItl0 = |h;...}..| |00002e90| 09 65 6c 73 65 0d 09 09 | 7b 0d 09 09 09 68 20 3d |.else...|{....h =| |00002ea0| 20 70 49 74 6c 30 3b 0d | 09 09 7d 0d 09 7d 0d 09 | pItl0;.|..}..}..| |00002eb0| 65 6c 73 65 20 69 66 20 | 28 69 64 20 3d 3d 20 31 |else if |(id == 1| |00002ec0| 29 0d 09 7b 0d 09 09 69 | 66 20 28 70 49 74 6c 31 |)..{...i|f (pItl1| |00002ed0| 20 3d 3d 20 4e 55 4c 4c | 29 0d 09 09 7b 0d 09 09 | == NULL|)...{...| |00002ee0| 09 68 20 3d 20 46 65 74 | 63 68 49 6e 74 6c 52 65 |.h = Fet|chIntlRe| |00002ef0| 73 6f 75 72 63 65 28 69 | 64 29 3b 0d 09 09 09 61 |source(i|d);....a| |00002f00| 73 73 65 72 74 28 68 20 | 21 3d 20 4e 55 4c 4c 29 |ssert(h |!= NULL)| |00002f10| 3b 0d 09 09 09 48 61 6e | 64 54 6f 48 61 6e 64 28 |;....Han|dToHand(| |00002f20| 26 68 29 3b 0d 09 09 09 | 48 4e 6f 50 75 72 67 65 |&h);....|HNoPurge| |00002f30| 28 68 29 3b 0d 09 09 09 | 70 49 74 6c 31 20 3d 20 |(h);....|pItl1 = | |00002f40| 68 3b 0d 09 09 7d 0d 09 | 09 65 6c 73 65 0d 09 09 |h;...}..|.else...| |00002f50| 7b 0d 09 09 09 68 20 3d | 20 70 49 74 6c 31 3b 0d |{....h =| pItl1;.| |00002f60| 09 09 7d 0d 09 7d 0d 09 | 65 6c 73 65 20 69 66 20 |..}..}..|else if | |00002f70| 28 69 64 20 3d 3d 20 32 | 29 0d 09 7b 0d 09 09 69 |(id == 2|)..{...i| |00002f80| 66 20 28 70 49 74 6c 32 | 20 3d 3d 20 4e 55 4c 4c |f (pItl2| == NULL| |00002f90| 29 0d 09 09 7b 0d 09 09 | 09 68 20 3d 20 46 65 74 |)...{...|.h = Fet| |00002fa0| 63 68 49 6e 74 6c 52 65 | 73 6f 75 72 63 65 28 69 |chIntlRe|source(i| |00002fb0| 64 29 3b 0d 09 09 09 61 | 73 73 65 72 74 28 68 20 |d);....a|ssert(h | |00002fc0| 21 3d 20 4e 55 4c 4c 29 | 3b 0d 09 09 09 48 61 6e |!= NULL)|;....Han| |00002fd0| 64 54 6f 48 61 6e 64 28 | 26 68 29 3b 0d 09 09 09 |dToHand(|&h);....| |00002fe0| 48 4e 6f 50 75 72 67 65 | 28 68 29 3b 0d 09 09 09 |HNoPurge|(h);....| |00002ff0| 70 49 74 6c 32 20 3d 20 | 68 3b 0d 09 09 7d 0d 09 |pItl2 = |h;...}..| |00003000| 09 65 6c 73 65 0d 09 09 | 7b 0d 09 09 09 68 20 3d |.else...|{....h =| |00003010| 20 70 49 74 6c 32 3b 0d | 09 09 7d 0d 09 7d 0d 09 | pItl2;.|..}..}..| |00003020| 65 6c 73 65 0d 09 7b 0d | 09 09 68 20 3d 20 46 65 |else..{.|..h = Fe| |00003030| 74 63 68 49 6e 74 6c 52 | 65 73 6f 75 72 63 65 28 |tchIntlR|esource(| |00003040| 69 64 29 3b 0d 09 7d 0d | 09 72 65 74 75 72 6e 20 |id);..}.|.return | |00003050| 68 3b 0d 7d 0d 0d 0d 48 | 61 6e 64 6c 65 20 43 46 |h;.}...H|andle CF| |00003060| 6f 6e 74 53 70 65 63 3a | 3a 46 65 74 63 68 49 6e |ontSpec:|:FetchIn| |00003070| 74 6c 52 65 73 6f 75 72 | 63 65 28 73 68 6f 72 74 |tlResour|ce(short| |00003080| 20 69 64 29 0d 7b 0d 09 | 43 46 6f 6e 74 53 70 65 | id).{..|CFontSpe| |00003090| 63 20 73 61 76 65 46 6f | 6e 74 3b 0d 09 73 61 76 |c saveFo|nt;..sav| |000030a0| 65 46 6f 6e 74 2e 53 61 | 76 65 28 29 3b 0d 09 47 |eFont.Sa|ve();..G| |000030b0| 65 74 53 79 73 74 65 6d | 46 6f 6e 74 53 70 65 63 |etSystem|FontSpec| |000030c0| 28 29 2e 55 73 65 28 29 | 3b 0d 09 48 61 6e 64 6c |().Use()|;..Handl| |000030d0| 65 20 68 20 3d 20 3a 3a | 47 65 74 49 6e 74 6c 52 |e h = ::|GetIntlR| |000030e0| 65 73 6f 75 72 63 65 28 | 69 64 29 3b 0d 09 73 61 |esource(|id);..sa| |000030f0| 76 65 46 6f 6e 74 2e 52 | 65 73 74 6f 72 65 28 29 |veFont.R|estore()| |00003100| 3b 0d 09 72 65 74 75 72 | 6e 20 68 3b 0d 7d 0d 00 |;..retur|n h;.}..| |00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003180| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R| |00003190| 6e 64 20 31 0d 09 45 6e | 64 0d 0d 09 23 20 69 66 |nd 1..En|d...# if| |000031a0| 20 6e 6f 20 63 68 61 6e | 67 65 20 68 69 73 74 6f | no chan|ge histo| |000031b0| 09 43 46 6f 6e 74 73 2e | 63 70 02 00 00 00 54 45 |.CFonts.|cp....TE| |000031c0| 58 54 43 57 49 45 01 00 | 00 00 01 00 00 00 00 00 |XTCWIE..|........| |000031d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 01 00 |..TEXTCW|IE......| |000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031f0| 00 00 a8 ed fe 70 00 00 | 30 8f 00 00 01 c8 22 20 |.....p..|0....." | |00003200| 26 26 20 53 65 74 20 46 | 6f 75 6e 64 20 31 0d 09 |&& Set F|ound 1..| |00003210| 09 49 66 20 21 7b 46 6f | 75 6e 64 7d 0d 09 09 09 |.If !{Fo|und}....| |00003220| 46 69 6e 64 20 2f 45 6e | 64 20 6f 66 20 45 41 53 |Find /En|d of EAS| |00003230| 45 20 4d 6f 64 69 66 69 | 63 61 74 69 6f 6e 20 48 |E Modifi|cation H| |00003240| 69 73 74 6f 72 79 2e 2f | 20 22 7b 57 69 6e 64 6f |istory./| "{Windo| |00003250| 77 7d 22 20 26 26 20 53 | 65 74 20 46 6f 75 6e 64 |w}" && S|et Found| |00003260| 20 31 0d 09 09 45 6e 64 | 0d 0d 09 09 49 66 20 7b | 1...End|....If {| |00003270| 46 6f 75 6e 64 7d 0d 09 | 09 09 43 6f 6e 66 69 72 |Found}..|..Confir| |00003280| 00 00 00 1e 00 48 03 b4 | 02 5d 05 b0 00 48 03 b4 |.....H..|.]...H..| |00003290| 02 5d 05 b0 00 00 2e e5 | 00 00 00 00 00 00 00 00 |.]......|........| |000032a0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..| |000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032c0| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 4b 01 b1 |........|.....K..| |000032d0| 02 d5 03 d9 00 4b 01 b1 | 02 d5 03 d9 ad fc 28 ab |.....K..|......(.| |000032e0| 00 00 00 00 00 00 00 00 | 00 00 2d da 01 00 00 00 |........|..-.....| |000032f0| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..| |00003300| 00 76 00 00 00 52 02 b0 | f3 38 30 1c 00 00 00 1c |.v...R..|.80.....| |00003310| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB| |00003320| 00 00 00 2a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...*....|........| |00003330| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........| |00003340| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........| |00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+